You use the SelectedIndex property of the ComboBox to set the index. The indexes are zero based so to get item 2 you use index of 1.
ComboBox1.SelectedIndex = 1;
>I created a ComboBox DropDownList with 4 items in it. I want the second item to be highlighted in the list when the WinForm displays. How do I set this?
>
>In VFP I would use ListItemID = 2. How do you do this in C#?
>
>Thanks,
>
>Jerry
-----------------------------------------
Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.comwww.prenia.comWeblog: blogs.prenia.com/cathi