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: [email protected] 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/[email protected] ** 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.

