Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Command btn keypress event question
Message
From
09/02/2007 08:49:25
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01194019
Message ID:
01194025
Views:
19
>I have a cmd btn that I only want enabled when the user clicks on it and want it disabled when said cmd btn has the focus so the user cannot hit ENTER and activate its click event. Can I move the focus to another control if the user DOES hit ENTER on it and not have it fire?

Sure, add to Button.Keypress event
If nKeycode=13
  Thisform.Othercontrol.Setfocus
  NODEFAULT
Endif
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform