Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Main form
Message
De
28/06/2000 21:48:03
 
 
À
28/06/2000 18:38:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00386153
Message ID:
00386255
Vues:
19
>OK..
>
>My next problem is...
>
>My main form allways opens up in a window that is slightly smaller than my desktop. How do I make my application open maximized?

Maximize the form before showing it - have the Form's Visible property default to .F., in the Init, issue something like the following code:
thisform.Lockscreen = .t.  && don't make any changes appear until unlocked
thisform.WindowState = 2  && maximize
*
*  yadda, yadda, yadda
*
thisform.Lockscreen = .f.  && all changes to the form's appearance now take effect
thisform.visible = .t.  && or if a Form from a class, simply invoke the Show method
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform