May I ask..
I have a Combo box on a simple form with values Mr, Mrs Miss Ms etc
I can cycle thru clicking with the little arrow on the Combo with the mouse..
But I thought it would be nice to use the keyboard up down keys.. Hence my code.
I checked with messagebox that 24 was getting thru ...but the Combo didn't move with the keyboard strokes !
Is there a trick ?
Sydney, Australia
I have a Combo box on a simple form with values Mr, Mrs Miss Ms etc
I can cycle thru clicking with the little arrow on the Combo with the mouse..
But I thought it would be nice to use the keyboard up down keys.. Hence my code.
I checked with messagebox that 24 was getting thru ...but the Combo didn't move with the keyboard strokes !
Is there a trick ?
Code:
LPARAMETERS nKeyCode, nShiftAltCtrl
IF nKeyCode == 5
*!* MESSAGEBOX(nKeyCode)
This.UpClick
thisform.Refresh()
*NODEFAULT
ENDIF
IF nKeyCode == 24
MESSAGEBOX(nKeyCode)
this.DownClick
thisform.Refresh()
*NODEFAULT
ENDIF
Sydney, Australia