Question selecting first item in combo box

theazza

Member
Joined
May 20, 2011
Messages
23
Programming Experience
1-3
how to program by stating if the first item in the combo box is selected then
 
Put this in the forms load event:

ComboBox1.SelectedIndex = 0



EDIT: Is that what you mean't? After reading your post I wasn't sure...
If you want to check which item is selected use this:

'##For checking text##
If ComboBox1.SelectedItem = "Item1" Then
    'Do events here
End If

'##For checking index##
If ComboBox1.SelectedIndex = 0 Then
    'Do events here
End If
 
Last edited:
Back
Top