Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Run Mininmized
Message
De
11/01/2001 20:34:53
 
 
À
11/01/2001 16:01:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00462508
Message ID:
00462716
Vues:
10
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform