Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set Focus Problems
Message
From
04/06/1996 16:36:31
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00001895
Message ID:
00001924
Views:
51
>>I have a form on which I have placed an OPTION
>>GROUP with 3 options. I would like the focus to
>>go to a specific control on the form depending
>>upon which option the use PRESSES ENTER ON. This
>>seems impossible. The natural place would seem
>to
>>be in the KEYPRESS EVENT but the keypress itself
>>seems to get executed after the focus is set on
>>the desired control ... causing the focus to be
>>passed to the next control. There is no problem
>>with a MOUSE CLICK just the KEYPRESS. Any
>>thoughts ?
>
>
>I use the VALID method.
>
>
>Tom

Doesn't work.

Let me state the specific circumstances. It is simple in theory ... but difficult in practice.

Form contains (in this tab order) a TEXTBOX, COMMAND BUTTON, OPTION GROUP. If the user presses the ENTER key while the OPTION GROUP is the active control I wish control to go to the TEXTBOX.
I am unable to make this happen.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform