Red Gate forums :: View topic - Setting a foreground window with managed code
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
PInvoke.Net
PInvoke.Net forum

Setting a foreground window with managed code

Search in PInvoke.Net forum
Post new topic   Reply to topic
Jump to:  
Author Message
yourbuddypal



Joined: 20 Dec 2007
Posts: 1

PostPosted: Thu Dec 20, 2007 5:51 pm    Post subject: Setting a foreground window with managed code Reply with quote

There is a win32 api method (SetForegroundWindow) that can be used to set the focused window if you have the window handle. Is there a way to do this with managed code?
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6589

PostPosted: Thu Dec 20, 2007 6:13 pm    Post subject: Reply with quote

Hi,

I'd happened to come across some information on this yesterday while searching doing some other research, and the consensus I get is that things like bringing the window to the front from the taskbar or giving focus seem to only be available by invoking the Windows API.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group