Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with SetFocus
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00052740
Message ID:
00053029
Views:
35
>the click event of "Add" again, at this point is when I receive
>>the error.
>
>I think therein lies your problem, Luis. When you call the cmdAdd.Click() from the Valid(), you are, in effect, issuing a SetFocus() from within a Valid().
>
>Maybe you need to offload some of this processing from the controls to form methods.

Thanks for your answer Steve, I need the SetFocus() in the click event of my
"Add". I don't understand why I can not check if the control
already has the Focus.
Why the ActiveControl property doesn't work?
Luis Guzman, MCP
"The only glory most of us have to hope for
is the glory of being normal." Katherine Fulleton Gerould
Previous
Reply
Map
View

Click here to load this message in the networking platform