C # control introduction,
TextBox txtProperty: Member:. Text // obtain the input string
DataGridViewProperty: AutoSizeColumnsMode: Fill Member:. DataSource // receives a DataTable to display the Query Information
ComboBox (drop-down box) cboProperty: Member:. DataSource // get or set a DataTable to display the Query Information (get or set the data source of this ComboBox .). DisplayMember // obtain or set the attribute to be displayed for this ListControl. String = dt. Columns [""]. ToString (). ValueMember // gets or sets an attribute that is used as the actual value of the item in ListControl. String = dt. Columns [""]. ToString () // No @. SelectedIndex // selected place int. SelectedValue // the string of the selected object. ToString ()
CheckBox (check box) chbProperty: Member:. CheckState // get or set the selected state (= CheckState. Checked)
RadioButton (single listener) rdbtn attribute: Member: private void rdbtnM_CheckedChanged (object sender, EventArgs e) {RadioButton rb = (RadioButton) sender; sex = rb. text;} private void rdbtnF_CheckedChanged (object sender, EventArgs e) {RadioButton rb = (RadioButton) sender; sex = rb. text ;}