Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to set focus from a Grid Textbox?
Message
De
16/08/2013 20:18:47
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 8
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01580622
Message ID:
01580675
Vues:
61
>You can set the focus to the textbox using a timer. Put a timer on the form, Interval = 200, Enabled = .F.
>In the Timer() event of the timer write:
>
>THIS.Enabled = .F.
>THISFORM.MyButton.SetFocus()
>
>
>In the valid of the textbox, instead setting the focus to the button, just enable the timer:
>
>THISFORM.tmrFocus.Enabled = .T.
>
>
>HTH

Hey, Christian, you're a fundamentalist of timers. This is the second time you suggest me a timer (last time was a very good idea and still working) and now it is not necesary. I solved problem with "afterrowcolchange" method. There I put "setfocus" and everything went right.

No logic for me but it worked.

Thank you very much. Excuse my ignorance, what's "HTH"???

Héctor
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform