Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid- Click- SetFocus()
Message
 
 
To
19/02/2004 14:59:15
John Vlahos
V I Software Solutions Design
Mississauga, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00878896
Message ID:
00878931
Views:
32
>I need to always set the focus to a textbox on the form. So after every event, command button, action, etc. I invoke a method (GoTo_Focus) which just executes the following:
>
>THISFORM.txtcWorkOrderID.SetFocus()
>
>My problem is that on the form I also have a non-readonly grid list which the user can click on and perfrom other functions to records; after which I must automatically set the focus to the textbox on the form (above).
>
>Where is the best place the call to the GoTo_Focus() method ?

You may try grid's Valid event. Also check FAQ here how to add GotFocus/LostFocus events to the grid.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform