[Reading Notes "C # development practices 1200 cases"] 1.2 use of Visual Studio development environment

Source: Internet
Author: User

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:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.