Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Application
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Miscellaneous
Thread ID:
00468882
Message ID:
00468894
Views:
17
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform