SonicBoomAu
Centurion
Hi All,
I hoping this can be done, and i sure someone here can tell me, so here goes.
I am using a Windows form and would like a combo box to drop down automatically but only if it has been Tab'd to.
At the moment my code is:
What i would like to do is throw in a If statement, so the me.cboWings.droppedDown = True on fires when Tab was used to get to that control.
Is something like this possible?
At the moment with the current code someone has to click on the dropdown arrow to display the items in the control. The first click displays the items but automatically hides them again.
Thank you all in advance for your help.
I hoping this can be done, and i sure someone here can tell me, so here goes.
I am using a Windows form and would like a combo box to drop down automatically but only if it has been Tab'd to.
At the moment my code is:
Visual Basic:
Private Sub cboWings_GotFocus(ByVal sender as Object, Byval e as System.eventArgs) Handles cboWings.GotFocus
' Automatically drop down the list for selection
me.cbowings.droppedDown = True
End Sub
What i would like to do is throw in a If statement, so the me.cboWings.droppedDown = True on fires when Tab was used to get to that control.
Visual Basic:
Private Sub cboWings_GotFocus(ByVal sender as Object, Byval e as System.EventArgs) Handles cboWings.GotFocus
' Automatically drop down the list for selection if key press was tab
If keypress = TAB then
me.cbowings.droppedDown = True
End If
End Sub
Is something like this possible?
At the moment with the current code someone has to click on the dropdown arrow to display the items in the control. The first click displays the items but automatically hides them again.
Thank you all in advance for your help.