First, we create the first Windows program, which is divided into 4 steps:
1. Open the Visual Studio Developer tool
2. Select "File" → "new" → "Project" command
3. Project type Select "Visualc#"
4. Template Select "Windows Forms Application"
Select a good location and confirm the project after naming it.
Understanding Windows Programs
Form1.cs: Form files, programmers write code to the form is usually stored in this file
Form1.Designer.cs: Form design file, where the code is automatically generated without modification
Form1.resx: Resource file used to configure the string used by the current form. Pictures and other resources
Program.cs: Main program file, main () method that contains the program entry
MessageBox: Prompt Information
The Real Exit program
In the FormClosing event of the form, write Application.exit ();
The above is the most basic information we have just contacted Windows, will gradually update the later content, please pay attention to!!
Initial knowledge of Windows programs