Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to force _SCREEN to be maximized on screen
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00355307
Message ID:
00355394
Views:
19
>I'm having the the hardest time trying to force _SCREEN to be maximized when I start the application.
>
>For whatever reason it makes the window bigger then the actual screen.
>
>I have to do the follow to have to window resize it self
>
>> select Maximize from menu.
>
>Any ideas what I should do?
>
The best solution is to start the application with the screen entirely invisible (put SCREEN=OFF in CONFIG.FPW) and then in the mainline code, add something like:

_SCREEN.WindowState = 2
_SCREEN.Show()

to bring the main window up maximized. You can also change any other aspects of the main window like caption, icon etc before issuing the _SCREEN.Show() in your program.
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