Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GotFocus
Message
From
03/04/2000 09:56:25
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00354241
Message ID:
00354246
Views:
19
>Does someone know how I can still execute Gotfocus if the control already has focus to start with?
>
>
>I need to put a message for the user when they are in a certain control. So I put code in the GotFocus event. Trouble is GotFocus is not is not fired if the control is already active and the user skips to the next record. So I decided to put code in the refresh event. Now I only want to put the message onthe status if the user is in this particular control. So I use object.activeControl to check the control is actually active. But activeControl.property generates an error when the form is first launched. But works fine there after. Any ideas why and how to resolve this. Or any better ideas of achieving this?
>
>Thanks.

Hi

You can call Gotfocus from code.

This.gotfocus

Mo
Previous
Reply
Map
View

Click here to load this message in the networking platform