One, design the form, according to their own needs to find the corresponding properties of the form (control the same), according to the specifications of the different attributes to write code (or in the property bar of each control to modify). Forms some properties are the same as control properties and are used consistently.
Query address: https://msdn.microsoft.com/zh-cn/library/system.windows.forms (v=vs.110). aspx
Exercise address: http://www.cnblogs.com/KY2017/p/7562766.html.
1. Menu control MenuStrip can make options menu
You can also set the main menu to a different type as needed
2. Tool control, ToolStrip, can make various small buttons above the form, there are many types can be set according to the needs of their own
3. Modify the background color of the form
The form has properties that modify the background color of the form by this property.
This.backcolor=color. Color Finish Modification
4. Set the size of the form
A form or control has a size property that you can modify to design the size of the form or control
The Text property of the 5.label control, the Location property, the BackColor property (the label's background color) property
To display the text content of a form by modifying the Text property of the label
Location Property Usage
An instance of the point class is required to assign a value to location
BackColor Property Usage
Summary: To control a control or form, you need to understand what the corresponding property is, and then call and modify the data according to the property to achieve the purpose of the design.
6. The foreground color of the form
Corresponding attribute ForeColor usage:
7. The form's icon
The Icon property of the form is ICO, which can be pre-existing in the project's debug file, and the setup path will be simplified. Usage:
8. Mouse controls for a form
Form Tools Exercise 1-10 Summary