Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FormSet Tabbing
Message
 
 
To
07/03/2000 17:56:19
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00342394
Message ID:
00343081
Views:
31
Hi Craig,
>
>Thanks for all your responses! On this one though I have an additional question. I tried your setFocus() work around and it works great except for one thing. If the last control is a button and I put the code THISFORM.FirstControl.SetFocus() in its lostFocus method then click on that button at run time I set focus to the first control instead of invoking the click method of that buttom. What's the best way to handle this if I absolutle have to keep this button as the last tabbed control of that form?
>
That's very simple. For command buttons use Click code instead of LostFocus, e.g.
CommandButton.Click()

... (your code here)
thisform.FirstControl.SetFocus()

HTH
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