Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run application minimized
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00410248
Message ID:
00410265
Views:
16
>how can i run a application minimized?
>

Imn your CONFIG.FPW, add the line:

SCREEN=OFF

this will completely hide the main VFP screen, to the point that it does not have even a taskbar presense. TO display it minimized, add the following to your main line program:
WITH _SCREEN
  .LockScreen = .T.
  .WindowState = 1
  .MaxButton = .F.
  .MinButton = .F.
  .Width = 0
  .Height = 0
  .Visible = .T.
  .LockScreen = .F.
ENDWITH
This should force the VFP main screen to remain minimized at all times, with a taskbar presense, and you can still access the pop-up menu by right-clicking on the taskbar icon (ie you can get to the Close option with similar results to clicking on the Close icon in the upper right corner of a form). Adding .ControlBox = .F. disallows even the context menu from being fired.
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