Michael,
Michael,
Put this into the Init() of the top level form

DECLARE INTEGER SetForegroundWindow ;
   IN User32.dll Integer

SetForegroundWindow(This.HWnd)


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of MB Software Solutions
Sent: 14 September 2007 13:35
To: Profox
Subject: App starts but window doesn't come into foreground

An app of mine starts but doesn't become the active window...it stays 
under the other windows on my user's desktop.  When the user clicks on 
the startup icon or chooses to run the pgm via the Start menu, I want 
the app to come into the foreground and be the active window.  How the 
heck do I force this so this stupid "stays under" behavior goes away? 

-- 
Michael J. Babcock, MCP
MB Software Solutions, LLC
http://mbsoftwaresolutions.com
http://fabmate.com
"Work smarter, not harder, with MBSS custom software solutions!"



[excessive quoting removed by server]

_______________________________________________
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.

Reply via email to