ComboBoxes [0]=new ComboBox ();
ComboBoxes [0]. FormattingEnabled=true;
ComboBoxes [0]. SetBounds (136, 26, 160, 20).
ComboBoxes [0]. SelectedIndexChanged +=new EventHandler (cbB_Baud_SelectedIndexChanged);
ComboBoxes [0]. The DataSource=GetBaudRateList ();
ComboBoxes [0]. Text="115200";
ComboBoxes [0]. Visible=true;
ComboBoxes [0]. Enabled=true;
ComboBoxes [0]. Parent=this;
TabPages [I] Controls. The Add (comboBoxes [0]).
Run:
Code comboBoxes [0]. Text="115200"; But there is no refresh interface
CodePudding user response:
Relevant experience of Daniel, show just a little!CodePudding user response:
Bind the datasource is generally use SelectedValue property changes the currently selected objectCodePudding user response:
As if comboBoxes. Text="115200";