Red Gate forums :: View topic - How to look after that a window is on top
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

How to look after that a window is on top

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



Joined: 01 Feb 2010
Posts: 1

PostPosted: Mon Feb 01, 2010 10:06 pm    Post subject: How to look after that a window is on top Reply with quote

Hy

I'm searching for a Solution:

I have a window which has opened a selfmade msgbox, which is always on top.

User subscribe himself and is waiting for an other user. So now he is doing mails and so on. Then, he was selected from an other user.

Now i want to now, if the window is now on the top of the windows, and if not, i'll do something to get the users perceptiveness.

How can i look after that in vb.net?

WindoShow and BringToFront weren't really usefulll for that.
Back to top
View user's profile Send private message
Paul.Martin



Joined: 03 Feb 2010
Posts: 83
Location: Cambridgeshire

PostPosted: Wed Mar 10, 2010 7:39 pm    Post subject: Reply with quote

BringWindowToTop http://www.pinvoke.net/default.aspx/user32/BringWindowToTop.html should do what you want.
However, activating windows without the users permission is not considered good practice so Windows will often stop you from bringing a window to the top whatever you try.
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