How to look after that a window is on top

Announcements and discussion for PInvoke

How to look after that a window is on top

Postby climbing93 » Mon Feb 01, 2010 10:06 pm


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

WindoShow and BringToFront weren't really usefulll for that.
Posts: 1
Joined: Mon Feb 01, 2010 9:53 pm

Postby Paul.Martin » Wed Mar 10, 2010 7:39 pm

BringWindowToTop 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.
Posts: 83
Joined: Wed Feb 03, 2010 11:20 am
Location: Cambridgeshire

Return to PInvoke.Net

Who is online

Users browsing this forum: No registered users and 0 guests