005. Set the version and help information for the program
:
1. Create a Windows form application windowsformsapplication1
2. Find the assemblyinfo. CS file and edit it.
Using system. reflection; using system. runtime. compilerservices; using system. runtime. interopservices; // define the Assembly title custom attributes of the assembly list [Assembly: assemblytitle ("set version and help information for programs")] [Assembly: assemblydescription ("")] [Assembly: assemblyconfiguration ("")] // defines the company name custom attribute of the assembly list [Assembly: assemblycompany ("future technology")] [assembly: assemblyproduct ("set version and help information for programs")] [Assembly: assemblycopyright ("Copyright©Microsoft 2014 ")] [Assembly: assemblytrademark (" ")] [Assembly: assemblyculture (" ")] [Assembly: comvisible (false)] [assembly: GUID ("50dbbda1-e1e2-4ea6-8e2c-4bdf535bd101")] /// specify the version of an assembly that is being attribute. // The version information of the assembly consists of the main version, secondary version, internal version number, and revision number. [assembly: assemblyversion ("1.0.0.0")] [Assembly: assemblyfileversion ("1.0.0.0")]
006. Set the winddows application startup form
1. Create a Windows form application windowsformsapplication1
2. Add a form2 form in this project
3. Find the program. CS file and modify the parameters in application. Run () to set the startup form at will.
Application.Run(new Form2());
007. Unified font settings of controls in the form
1. Create a Windows form application windowsformsapplication1
2. Add three button controls in the default form form1
3. Right-click to open the property and set the font.
008. layout the form through the "format" menu
1. Create a Windows form application windowsformsapplication1
2. Add three button controls in the default form form1
3. Select the three buttons to be added, and select "format", "Horizontal spacing", and "same interval" in the menu to make the horizontal spacing between the three button controls the same.
4. You can also set the alignment, size, and Vertical spacing of controls in the form through the "format" menu.
Set alignment:
Set the widget size:
Set Vertical spacing: