Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to set focus from a Grid Textbox?
Message
 
 
À
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:
01580676
Vues:
39
>>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

HTH means "Hope this helps!" You are right, I'm addicted to timers!

If you click on the "Options" tab besides of the message header you can select "Enable acronyms" and then those are spelled out in the message, so you won't need to guess.
Christian Isberner
Software Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform