Control Down Arrow in combobox?

J

Jeff Klein

I want to set up the down arrow and control key together to scroll down the
list in a combobox?
Before I start coding...does anyone have any ideas?
 
M

Mike

KeyPreview property... You'll have to set focus to the dropdown first, then
dropdown the list. Lookup Keycodes for vb constants

____________________________
Private Sub Form_Load()
Me.KeyPreview = True
End Sub

Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
Select Case KeyCode
Case vbKeyControl + vbKeyLeft
' Process F2 key events.
Case vbKeyF3
' Process F3 key events.
Case vbKeyF4
' Process F4 key events.
Case Else
End Select
End Sub
 
G

George Nicholson

As opposed to the built-in functionality of Alt+DownArrow which opens the
box and subsequent DownArrows to scroll?

Unless there is some overriding reason to so so, it just seems a bit like
reinventing the wheel for very little ROI.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top