Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How 2 Stop a ComboBox DropDown?
Message
From
17/04/2000 13:04:21
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, California, United States
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00360450
Message ID:
00360475
Views:
16
>Hi All.
>
>Is there any way I can get a ComboBox to NOT drop down a List when I hit the RETURN key? No matter what I do it always brings up the list box. I can skip the box with TAB but Im trying to create the ultimate ComboBox to use in all my applications and I would like it to be perfect :-)
>
>RETURN should bring up the List if the my custom method (this.blankentry) is .F. and skip it if .T.
>

Try trapping the RETURN with the KeyPressEvent:

IF This.BlankEntry AND nKeyCode == 13
NODEFAULT
KEYBOARD '{CTRL+TAB}' && Moves to the next control in your tab order
ENDIF

Hope this helps!
Previous
Reply
Map
View

Click here to load this message in the networking platform