Control Down Arrow in combobox?

  • Thread starter Thread starter Jeff Klein
  • Start date Start date
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?
 
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
 
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.
 
Back
Top