Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run Mininmized
Message
From
11/01/2001 20:34:53
 
 
To
11/01/2001 16:01:30
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00462508
Message ID:
00462716
Views:
12
>How can I get an app that a user installs to run "minimized" automatically. When the user installs the app and the program directory is created, the app defaults to run "normal" and a blank white screen flashes before the app starts. Any help would be appreciated.

In addition to Larry's recommendation, you can also modify the Shortcut to start the application minimized - the Wscript.Shell's CreateShortcut WindowStyle property can be set to 7 to start it minimized and bring the next top-level Window to Foreground.

An alternative is to add the line

SCREEN=OFF

to the CONFIG.FPW, and in your main line application:
WITH _SCREEN
   .LockScreen = .T.
   .WindowState = 1
   .LockScreen = .F.
   .Visible = .T.
ENDWITH
to minimize the form and make it visible. There will be no flash since the main VFP screen is invisible until you set _SCREEN.Visible = .T., and you will have already minimized the form.
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