Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
*storing* active control
Message
From
21/11/1996 10:14:25
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00012972
Message ID:
00013000
Views:
30
>in the when event of a button I can see what other control may currently have focus by using THISFORM.ActiveControl.Name
>
>I need to be able to *store* this control so that after the button does it's thing i can set the focus back to that previous control.
>
>I'm coming up empty. How does one do this?

you can use the lostfocus event of each control to set a property in the form/formset/app that will hold the lastactive
and when ever you want to know what was the last control check this
I used this technique in several places (it is coded into the base classes)
and it works great

Arnon
Previous
Reply
Map
View

Click here to load this message in the networking platform