Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't call setfocus from a valid event
Message
De
09/06/2003 12:49:12
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
09/06/2003 10:23:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00797959
Message ID:
00798018
Vues:
20
>Hi all, i have a problem with this form that find clients, when i clic the search button it shows the find window then if success shows the select window wich have a listbox then put the focus on it to show the selected client. When the user digit a inexistent client i show the find window again but, at the moment the form try to put the focus on the listbox shows the error "can't call setfocus from a valid event"
>how can i fix it? thanks....

Move your code to lostfocus. It's very dangerous to let the focus go on other objects while in a valid, that's why it doesn't let it and behaviour is different depending on version.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform