ComboBox: Combo Box---Properties:
Text: The selected value
Items: item in a combo box
Add: Adding a single value
AddRange: Adding Multiple values
SelectedIndex: Index value
SelectedValue: Hidden values
DropDownStyle: drop-down box style
Remove: Delete
Clear: Clear
Cases:
Check the value of the text box
var Txt=this.combobox.text;
To add a single value
THIS.COMBOBOX.ADD ("small Black");
To add multiple values
string[]strs={"Small black", "Millet"};
This.ComboBox.AddRange ("small Black");
Select the first value
this.combobox.selectedindex=0;
Hidden values
this.combobox.selectedvalue=;
Drop-down box style is set to read-only
This.combobox.dropdownstyle=comboboxstyle.dropdownlist;
Delete the selected value
This.combobox = items.remove (TXT);
Clear the selected value
This.combobox = items.clear (TXT);
---event: selectedindexchanged: Event triggered when a drop-down box list is changed
Radionbutton: Radio Button---properties:
Checked: Whether to select
Cases:
if (this. radionbutton.checked) {
Messagerbox.show ("checked");
}else{
Messagerbox.show ("unchecked");
}
Timer: Clock Control---properties:
InterVal: time interval, Unit is milliseconds
Enavles: Turn on the clock
Cases:
Get current time
DateTime Dt=datetime.now;
Turn on the clock
This.timerl.Start ();
Set the time interval
this.timerl.interval=1000;
Stop clock
This.timerl.stop ();
DataGridView: The Underworld
Binding value: this. datagridview.datasource=table;
Checked value: this. Datagridview.selecteditems[0]. Cells[0]. Valus.tostring ();