problem with combo box

ss123

Member
Joined
Feb 25, 2006
Messages
14
Programming Experience
1-3
i have question on how to set the first item in the combo box automatically show when the form load?

please advise. Thanks.
 
Combobox1.SelectedIndex = 0

0 is always the 1st item in a combobox/listbox
if nothing is selected then the SelectedIndex is -1 so if you want to de-select everything then simply do this:
Combobox1.SelectedIndex = -1
 
Back
Top