Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setfocus on first textbox control on page
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00944565
Message ID:
01034664
Views:
25
Hi Nadya

>Well, you do THIS.pgf.ACTIVEPAGE = 1
>Without it the first control is not selected the first time the form is activated. So, in order to not execute Page.Activate, Page.Deactivate and perhaps a plehora of other methods, I set ActivePage to 0 in design time. Now everything works fine for me and I avoided the overhead.

Means you can avoid MereMortals.SetFocusToFirst() method? Sorry to sound dense.

>MereMortals framework has SetFocusToFirst method, which is very similar to what you wrote and uses a recursion.

Aah got to think in that terms. But my main aim for this was to switch to the first page and first control not the activated page's first control.
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Previous
Reply
Map
View

Click here to load this message in the networking platform