Topmost Tool Window

G

Guest

Greetings,

I have a vb.net app, and I have a tool window that I was to be topmost while
the application is in focus, but not stay on top of other apps that get the
focus.

Basically, I want it to behave like the tool windows in Photoshop.

How do I set the attributes to do this?

Thanks for your help!
Kevin
 
P

Phil Wright

Try setting the TopMost property of your ToolWindow. If that is causing the
window to stay above all other applications as well you could remove the
TopMost setting when your main application window loses activation and then
set the TopMost back again when it gains activation.

Phil Wright
Follow my C# microISV at....
http://componentfactory.blogspot.com
 
G

Guest

Thanks! I was trying to use GotFocus and LostFocus, and nothing was
happening, but the Activated and Deactivated did the trick.

Thanks for your help,
Kevin
 

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

Top