WindowsForm interface Run Order Form properties
What is a class: Class 1 is the basic unit of object-oriented programming. The class contains two member fields (field) and Method methods
2 field is a variable method that is a function
What is a field: A field represents the data in a class, and a field is defined when a variable is defined outside all the methods of the class. Before the variable, you can add public private and protected to represent the access to the field.
What is a property: A property consists of two special accessors (get) and write accessors (set).
Form events: The function that is interpreted as a delegate variable, which function is pointed to.
Form: The process of displaying a form is a process of making objects from a template.
Go first the constructor, the InitializeComponent () method in the constructor, is used to initialize the interface
Form load events, which are triggered before the form is displayed
private void Form1_Load (object sender, EventArgs e)
{
}
Common Properties for Form forms:
StartPosition: The starting position of the form display
Manual: Manual settings, set to this after the display according to the location of the coordinates settings
Centerscreen: Center Screen
Centerparent: Parent form Centered
WindowsDefaultLocation: Default starting point
MaximumSize: The maximum size that the form can display, once set, the form can only be set to the maximum size
MinimumSize: How small can the form be?
Size: size of the form
Form style:
ControlBox: Whether a menu item, such as a form's Close button, is displayed
Icon: Set the form icon file
Showicon: Whether the icon is displayed
Maxmizebox: Maximizing Availability
Minmizebox: Minimized if available
Opacity: Setting form transparency
IsMdiContainer: Sets whether the form is a parent container for other forms
Topmost:
Behavior:
ContextMenuStrip: Used to specify which right-click menu to display
Enabled: Whether the settings are available
WindowsForm interface Run Order Form properties