Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Main form
Message
From
28/06/2000 21:48:03
 
 
To
28/06/2000 18:38:34
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00386153
Message ID:
00386255
Views:
20
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform