A, B (rowser)/S (erver): Browser / server '
HTTP:hypertext Transfer Protocol
II, C (lient)/S (erver): Client / server
TCP/IP; UDP/IP:
IP :Internet Protocol
TCP:Transfer Control Protocol
UDP:User Datagram Protocol
Part Three: Separating code from a class
Iv. Form Properties:
Text: Title,icon: icons,BackColor: Background color,
Size/maximumsize/minimumsize: The size of the form, the maximum size of the form, the minimum size of the form
startposition: set the start position of the form Centerscreen ( Center of Screen )
WindowState: set the startup size of a form MaximumSize ( start maximized )
ControlBox: Disabled -(minimized)-(maximized) x (off)
MinimizeBox: Disabled -(minimized)
MaximizeBox: Disabled -(maximized)
Naming prefixes:
V. Form Controls FRM
Label: Label LBL
TextBox: text box txt
TextBox: Password box txt set PasswordChar property value for text box :*...
TextBox: Text field txt set MultiLine property value for text box :True
button: btn
RadioButton: radio button RB
CheckBox: Check button CB
ComboBox: drop-down list box CMB items(Add fixed list item)
ListView: List view LV items(add list item),view(various different views)
DataGridView: Data grid view DGV DataSource(data source)
Six, pop window:MessageBox
MessageBox.Show ( message content , Message title , type of button , type of icon )
MessageBoxButtons MessageBoxIcon
OK,okcancel error,information,question
return DialogResult
Ok,cancel
Vii. Methods of the form
the display of the form: Show ();
forms are hidden: Hide ();
closing of the form: Close ();
Viii. transfer values between forms
Passing values through attributes
First, the way the form is displayed:
The Form Object . Show (); Infinite number of times
The Form Object . ShowDialog (); Only one time
Second, the control
Translation control name naming prefix
Menu bar MenuStrip ms Test Centers
menu item ToolStripMenuItem Tsmi
Toolbar ToolStrip TS
toolbar button ToolStripButton TSB
Horizontal alignment: Alignment (Left,right)
display mode: Displaystyle (ImageAndText,Image)
Photo: Image ( image from resource file properties->resources.resx)
position relationship of picture and text: Textimagerelation (Imagebeforetext, Imageabovetext)
Third, shortcut keys for menu items: (after the name of the menu (& Letters ))
Menu shortcut keys F, menu item shortcut keys O, shortcut key combination:alt+f+o
Iv. exit the entire application:C #:application.exit (); Logicjava:system.exit (0);
Show Form: Form Object . Show (); /ShowDialog ();
Close form: Form Object . Close ();
Hide Form: Form Object . Hide ();
Five, anchor Anchor (top,right,bottom,left) function: Lock control and form, right, bottom, left distance
Dock Dock (Top,right,bottom,left,fill) feature: Let the edge of the control stick to the top, right, bottom, left, or four edges of the form.
Vii. Setting up an Mdi form: Change the value of the form's ismdicontainer property to:true
to use a form as The child form of the Mdi form is displayed, and the MdiParent property of the subform object must be set to
Mdi form ( mdifrom.mdiparent = this). (Mdi child forms can be displayed only with show (), not with
ShowDialog ())
Viii. set up a subform list:
Set the menu bar ( MenuStrip) The mdiwindowlistitem property is a menu item (toolmenustripitem).
called Mdi form layoutmdi (mdilayout ml) (Cascade Cascade , Tilehorizontal horizontally tiled , tilevertical Tile vertically )
Nine, text control gets focus: Text control object . Focus ();
Drop -down list box: Select the text content property: Text
Select content index ( set / take ) : SelectedIndex , from 0 start certificate, no index selected as -1
properties that are expanded by the drop-down list: Droppeddown, a value of bool,true to open the drop-down list
settings can only be written without editing properties: DropDownStyle, with a value of DropDownList
Dynamic to Add list item in ComboBox: Drop-down list object . Items.Add (string txt);
Prevent duplicate additions: drop-down list objects . Items.clear (); Clear All list items
read-only properties for text boxes: ReadOnly (True/false)
Initial knowledge of Windows programs