Problem with TopMost Functionality in VB.NET

  • Thread starter Thread starter Phil Galey
  • Start date Start date
P

Phil Galey

I have a small application, which is to always stay on top. Another
application, which it is supposed to stay on top of, is QuarkXPress 5. I'm
using Me.TopMost = True in the Form1_Deactivate event, and it works almost
perfectly. It always stays on top, except when I click on one of the tools
in the floating tool bar of QuarkXPress. Anything else in QuarkXPress is no
problem ... document, menus, etc. But click on anything on QuarkXpress'
floating toolbar, and my VB.NET application says bye-bye.

What event might I use in this situation to stop it from losing it's TopMost
position? Thanks.
 
Phil Galey said:
I have a small application, which is to always stay on top. Another
application, which it is supposed to stay on top of, is QuarkXPress
5. I'm using Me.TopMost = True in the Form1_Deactivate event, and
it works almost perfectly. It always stays on top, except when I
click on one of the tools in the floating tool bar of QuarkXPress.
Anything else in QuarkXPress is no problem ... document, menus, etc.
But click on anything on QuarkXpress' floating toolbar, and my
VB.NET application says bye-bye.

What event might I use in this situation to stop it from losing it's
TopMost position? Thanks.


What if the other application wants to be topmost, too? Which one is more
topmost? All topmost windows have their own z-order.

Look for "z-order" or "topmost" here:
http://msdn.microsoft.com/library/e...nterface/windowing/windows/windowfeatures.asp


Armin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top