Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setfocus()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00012947
Message ID:
00012952
Vues:
28
>I'm gonna get it for this one!
>
>I have a class for my login screen, subclassed to change passwords and add new users. In my lostfocus() event I check for a pre-existing user name and a message box prompts the user to select a different name. After the MB code I have tried this.setfocus() and thisform.txtUserName.setfocus(), but neither of these are returning focus to the textbox! What an idiot, eh? (Maybe I should just put the code in the passwords gotfocus() event!)
>
>Armor plating installed!
>
>Jon

Jon I think you need to type your code like this. thisform.txtbox1.setfocus=.t. and I think that will take you back to the textbox also if I understand the help file (when I recently had a problem the setfocus command) before the control can recieve the focus it must of course be enabled.

Hope this is right

Bill Clark
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform