Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ShellExecute
Message
From
29/01/2002 11:41:33
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00612029
Message ID:
00612224
Views:
21
Hi Arthur

Thanks for your reply. The ShellExecute works fine. Its VFP poping to the front thats causing the problem. I have tested further and found that if I call a program, eg DO LoadDoc.prg, which in turn calls the ShellExecute everything is fine until the program issuing the ShellExecute ends and passes control back to the first program. Then VFP pops to the foreground and becomes the active window.

As long as I stay at the level of the program which issued the ShellExecute then VFP stays in the background. I can test this by calling ShellExecute and then forcing a wait state, eg Inkey(10). When the Inkey ends and control passes back up the line VFP becomes the active window again.

Any thoughts?

Jos
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform