>>>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.
Don
If I remember right the NODEFAULT keyword will stop the focus from following the Tab order (prevents system events from occuring). The just setfocus().