Visual Studio 2019

Windows Application Development

Here we are going to use CLR/C++ windows form to develop windows application/software but for that first you have install Visual Studio 2019 on your Windows/Mac.

To get guidance how to install Visual Studio 2019 click here. Please follow the steps for installation carefully and perform the same to avoid errors in future.

To install it click here.

Now, lets get information about Windows CLR Forms it is mainly used to develop User Interface(UI) Softwares using C++ programming language.

Lets start with selecting the desired template for our first project on CLR/C++ Windows Forms.

STEP 1:-

Application Development Visual Studio 2019

STEP 2:-

Application Development Visual Studio 2019


STEP 3:-

Application Development Visual Studio 2019

This is your workspace for the first project in Visual Studio 2019.

Application Development Visual Studio 2019

Now, lets do some configuration of the project to run without errors.

STEP 4:-

Application Development Visual Studio 2019

Application Development Visual Studio 2019

STEP5:-

Application Development Visual Studio 2019

STEP 6:- Then you will see the following error, to solve the following, you have to just the instance of Visual Studio 2019 and open it once again and from recent projects one the project again.

Application Development Visual Studio 2019

STEP 6:- After restarting the application you will get the following screen.

Application Development Visual Studio 2019

STEP 7:- You have to do some configurations for the project again.

Application Development Visual Studio 2019

Application Development Visual Studio 2019

Application Development Visual Studio 2019

After applying above configurations click on Apply and the OK

STEP 8:- After that, from Solution Explorer, click on the file named as MyForm.cpp. In this file we have to right some code for main function. 

#include "Firstform.h"

using namespace System;
using namespace System::Windows::Forms;

[STAThreadAttribute]
void Main(array<String^>^ args) 
{
	Application::EnableVisualStyles();
	Application::SetCompatibleTextRenderingDefault(false);
	//MyFirstProject is your project name
	//In every project you have to change the below line according to your project name
	MyFirstProject::MyForm form;
	Application::Run(% form);
}


STEP 9:- For Further Development please watch the video given below.



Post a Comment

Previous Post Next Post