1. Properties
Form title Name form icons icon background picture backgroundimage
Background color BackColor Maximize button maximonbox Minimize button minimun
form border Style FormBorderStyle form initial position startposition
Form state windowsstate background picture extrude backgroundimagelayout form title Text
The form displays the status topmost closing window close () Help button HelpButton
Show form show () modal form ShowDialog () hidden form hide ()
2. Basic controls
Control Name control class name naming prefix
Tag Label LBL
Text box textbox txt
Combo Box ComboBox CBO
Pushbutton button BTN
Tag Label:
The image on the label displays the text
Text box textbox:
Maximum number of characters MaxLength whether you can enter multiple lines of text mulitiline as a password box, set the displayed password character PasswordChar whether to allow editing ReadOnly associated text
Combo box combobox:
The items in the combo box are the style of the DropDownStyle combo box associated with the text of the current selected item's index, starting with 0 SelectedIndex get the currently selected item SelectedItem
Buttons button:
Whether the control is available to Enable display of the file text alignment TextAlign
3. Circumstances of the event
Buttons button:
Click: Fires when a component is clicked.
Like what:
private void ... (...,...)
{
This. Close ();
}
Fourth section MessageBox message box
The simplest message box
MessageBox.Show ("Characters to display");
A message box with a caption
MessageBox.Show ("Characters to display", "input hint");
message box with caption, button
MessageBox.Show ("Characters to display", "input hint", messageboxbuttons.okcancel);
message box with caption, button, icon
MessageBox.Show ("character to display", input hint ", messageboxbuttons.okcancel,messageboxicon.information);
Initial Windows programs