Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / December 2004

Tip: Looking for answers? Try searching our database.

Non-Modal Tool Window

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Thomas Weise - 15 Dec 2004 18:33 GMT
In my app I want to have a non-modal tool window that stays on top of the
main form,
like for instance the tool windows in Paintshop or Photoshop.

I have accordingly set FormBorderStyle = FixedToolWindow und TopMost = True
for my tool window.
However, the tool window stays on top of all windows of all apps running on
my computer, so it sits on top of other apps even if the main form is
minimized.

A friend told me that the ParentForm property needs to be set to the main
form to cause the tool window to hide together with the main form. But this
property is readonly.

Any ideas?

Thanks in advance,
Thomas
Chris Jobson - 15 Dec 2004 19:11 GMT
I think you want to set the tool window's Owner (rather than P{arent)
property to the main form.

Chris Jobson

> In my app I want to have a non-modal tool window that stays on top of the
> main form,
[quoted text clipped - 14 lines]
> Thanks in advance,
> Thomas
Thomas Weise - 15 Dec 2004 19:29 GMT
Chris,

Thanks a lot!
I also had to set TopMost to False again.
Works great.

>I think you want to set the tool window's Owner (rather than P{arent)
>property to the main form.
[quoted text clipped - 19 lines]
>> Thanks in advance,
>> Thomas

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.