jump from form A to B
1. Create an object of B
2. Call Show () to display the form
To write an event handler:
1. Select the control
2. Not by default select in the Event list
Button Control
Click mouse Click event
From form event:
load (executed when form loads)
fromloseed (executed when form is closed)
First, menu: MenuStrip
Properties:
Text : Type (& letter) ALT + Letter
Image: The icon to the left of the text
Shortcutkeys: Setting shortcut keys
Event: Click Default Event
Second, the tool bar: ToolStrip
usually a shortcut used in a menu item
Properties:
Text : Type (& letter) ALT + Letter
Image: Icon
Displaystyle: Whether to display text or pictures
imagesclalingsize: The size of the picture
textimagerelation: Picture and text display location
Event: Click Default Event
third, the value of the form:
transfer values from a form to form B
set a common variable in the B form
1. Create an object of form B
2.B Form object. Public variable = value
3. Call the show () of the B form Object
iv. radio button: Radiobox prefix RDO
Text : Display text
Checked: Whether bool type is selected
v. Date control: DateTimePicker prefix: DTP
Value: Gets the currently selected date
Build a good Windows program