Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setfocus on first textbox control on page
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00944565
Message ID:
01034664
Vues:
26
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
___________________________________________
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform