how to create top level toolwindow

S

SharpCoderMP

hi,

i'm trying to create top level ToolWindow (derived from
System.Windows.Form) for my application. How can i make my ToolWindow to
always stay on top of my application but not on the top of all other
windows? i would like it to "go down" when the main application window
is deactivated. To put it stright - i want it to be the TopMost form
*only* for my application.
in other words, i would like to achieve an effect similar to the
photoshop tool windows.
 
S

SharpCoderMP

ok, don't bother :)

sorry, i was trying to set property
ToolWindow.TopLevel = true;
but without specifying
TollWindow.Owner = [my_apps_main_form]
the above didn't worked. when i did this:
ToolWindow.Owner = this;
ToolWindow.TopLevel = true;
everything worked fine.
 

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

Similar Threads


Top