RE: RUN an EXE

Author: Tracy Pearson

Posted: 2011-12-05 at 11:18:16

Kent Belan wrote on 2011-12-05:

> I tried ShellExecute, but I get the same result.

>

> The new EXE starts behind the application.

>

> Any way for the new EXE to force itself to be in focus ?

>

> I used to use this code in the main forms Init method:

>

> Declare integer SetForegroundWindow in User32.dll Integer

> SetForegroundWindow(this.HWnd)

>

> But this is not working, maybe because I am on W7/64 computer ?

>

> Thanks,

> Kent

>

Kent,

Is your EXE a Top-Level form with the CONFIG.FPW setting: Screen=off

Or is the _Screen visible?

Tracy Pearson

PowerChurch Software

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/001801ccb369$7edd44b0$7c97ce10$@powerchurch.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 Tracy Pearson