Combo box Problem ???

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How to make the combo box display text or initial value without select from the arrow
For instance: cboGender consists of two item - male and female, I want to display male as default text on the contro
How to do this ???? Is it possible ???

Thanksssss
 
The following code should work:

this.comboBox1.Items.Add("Female");
this.comboBox1.Items.Add("Male");

this.comboBox1.SelectedItem = "Male";
OR
this.comboBox1.SelectedIndex = 1;

--
Tim Wilson
..Net Compact Framework MVP
{cf147fdf-893d-4a88-b258-22f68a3dbc6a}
Hong said:
How to make the combo box display text or initial value without select from the arrow.
For instance: cboGender consists of two item - male and female, I want to
display male as default text on the control
 
Back
Top