Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setfocus method changes visibility of the form
Message
De
05/03/2007 08:41:08
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01200689
Message ID:
01200693
Vues:
27
This message has been marked as a message which has helped to the initial question of the thread.
>Following code part raises a "cannot change modality of visible form" error, because of setfocus method change visibility of the form from hide to visible. To solve this problem I manually change the form to hide mode manually. Is there any alternative way to fix this problem.
>
>Best regards
>
>Ali Altun
>
>
>do form "form1.scx" name oMyForm noshow
>oMyForm.text1.setfocus()
>** oMyForm.hide = .T. && this line is used to fix the problem
>oMyForm.show(1)
>
do form "form1.scx" name oMyForm noshow
oMyForm.text1.tabindex = 1
oMyForm.show(1)
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