views:

18

answers:

1

i am using .net winform. based on my string it will focus the drop down value.

ex.

my dropdown have select value ..if i pass select as a value it should focus the select option in dropdown .

+1  A: 

Just set the SelectedItem property.

 comboBox1.Items.Add("Apple");
 comboBox1.Items.Add("Orange");
 comboBox1.Items.Add("Banana");

 comboBox1.SelectedItem = "Orange";
NascarEd