Different types of applications can be developed by using C#.NET. Desktop application is one of them. Various types of desktop applications can be developed by using C#.NET. You have to install the Visual studio with C#.NET that has been shown on another tutorial. The way of creating your first desktop application has been shown in this tutorial.
Click on the Create a new project option to create a project for desktop application.
Now, select the Windows Form App (.NET Framework) option and click on the Next button.
Set the Project name, Location, Solution name, and Framework for the project.
The following window will appear after selecting the project.
Open the Toolbox window to design the form by clicking the View menu.
The following Toolbox will appear. You can change the properties of the form window by clicking the form window. Set the size and position of the form window by setting the Size and StartPosition properties.
Design the form like the following image by using label, textbox, and button tools.
The following window will be displayed in the center of the screen after running the project.
If the Register button is pressed after adding data on all fields of the form then the following message will appear.
If the Register button is pressed by keeping any field empty of the form then the following message will appear.
The way of creating a simple form by using some basic tools has been shown in this tutorials. Many types of tools are available in the ToolBox to design different types forms for the desktop application.