Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to show maximized screen on startup?
Message
 
To
24/12/1997 21:31:38
Shihchau Tai
Apic Systems Pte Ltd
Singapore, Singapore
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00067907
Message ID:
00067909
Views:
28
>When I first run my EXE, it doesn't show a maximized screen. The user needs to press the maximized button to get it maximized.
>
>How do I maximize it on startup?

I put the code below in my main prg to start my app. _screen refers to the foxpro window. _screen.windowstate= 2 maximizes foxpro's screen on startup.
Hope this helps!

WITH _screen
.LockScreen=.T.
.windowstate= 2 &&Maximizing Main FoxPro Window
.BackColor=rgb(192,192,192)
.caption = "Rural/Metro Marketing System"
.fontsize = 12
.icon = "rmtruck.ico"
.LockScreen=.F.
ENDWITH
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform