Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
English
Transfer focus to previous control with focus after use
Message
General information
Fórum:
Visual FoxPro
Category:
Miscellaneous
ID da thread:
00322283
ID da mensagem:
00322299
Views:
23
>I have a navigation class based on a CommandGroup. I want to set focus back to the object with focus before a member button was clicked. For example, if the current object is a textbox control and the user clicks the Next button of my navigation class, I want to execute the skip &etall and lastly set focus back to the textbox control. Thanks. BTW, I love this site.

John, you can have a property in your form which will hold an object reference (or an object name), so you can use it to set the focus back to that control. All nesessary controls in their .When() event have to set that form property to point to themselves.

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Responder
Mapa
View

Click here to load this message in the networking platform