Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Application
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Divers
Thread ID:
00468882
Message ID:
00468894
Vues:
13
>Hi All:
>
> When my user clicks on the .exe icon, I need the form to be centered on the user's screen, regardless of the user's screen (monitor screen) size. How can I accomplish this?
>

Set up the form with .Visible = .F. as a default. In the Init of the form, add:
WITH thisform
   .lockscreen = .t.
   .autocenter = .t.
   .visible = .t.
   .lockscreen = .f.
ENDWITH
this will center the Form automatically; set the Desktop property to determine realtive to the VFP main Window/owning Top Level Window or the desktop independently.


> Thanks!
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
Répondre
Fil
Voir

Click here to load this message in the networking platform