views:

24

answers:

1

Hi guys,

When we click on drop down combobox control in our windows form, it shows the list automatically.

But when we press tab and navigate to that control from keyboard it doesn't shows the list automatically. So in other to show the list automatically on receiving focus what should be done?

+2  A: 

Set the DroppedDown property of the combobox equal to true.

    Private Sub myComboBox_GotFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles myComboBox.GotFocus
 myComboBox.DroppedDown= true
    End Sub
Wael Dalloul
+1, but use the Enter event instead.
Hans Passant
thxn wael dalloul ... it worked
KoolKabin