Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP6: Minimize a top level app
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00579279
Message ID:
00580573
Views:
25
>>declare long ShellExecute in "shell32.dll" ;
>> long hwnd, string lpszOp, ;
>> string lpszFile, string lpszParams, ;
>> string lpszDir, long nShowCmd
>>
>>ShellExecute(0,'open','c:\mypath\myapp.exe',0,0,SW_SHOWMINIMIZED)Cetin
>
>I tried this and it doesn't work on either of my applications. They are top-level apps with a minimized button activated. I even tried sending a parameter to the EXE to set the WindowState in the Init and that hasn't worked.

David,

Something's happening within the app itself. I just completed an SDI application, and tried to use the method above, the Shell object from the WSH and the VFP RUN command and was able to start the application minimized in each case.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform