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 / October 2004

Tip: Looking for answers? Try searching our database.

Docked panels and Z-order problem.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dominik Jeske - 17 Oct 2004 11:05 GMT
Hallo.
I have two panels docked on the right of the form (p1 on the left and p2 on the right) and I want third panel to slide from right to left into a view between p1 and p2 (Just like Solution Explorer window in Visual Studio ? if it is in auto hide mode its slides to left when mouse is over it), but when I put my third panel on Controls list of the form, set it child index between those two and start to slide I have opposite effect ? the p1 is visible and p2 is hidden ? it is a way to do this right ???
Jeff Gaines - 17 Oct 2004 17:03 GMT
> Hallo.
> I have two panels docked on the right of the form (p1 on the left and
[quoted text clipped - 5 lines]
> have opposite effect ? the p1 is visible and p2 is hidden ? it is a
> way to do this right ???

Dominik

It can be quite difficult to change the docking once you have added the
panels to a form!

It may be easier to have all three panels on the form, docked to the
right, then just change the width of the panel you want to show/hide
(you can do this in a loop if you want it to 'grow' or 'shrink').

To change the docking order and add a panel I would:

1: Change the properties of the left panel to no docking
2: Change the properties of the right panel to no docking
3: Add the third panel (if you haven't already)
4: Select the right most panel, select Format | Order | Bring to Front
5: Change the docking to right
6: Select the middle panel, select Format | Order | Bring to Front
7: Change the docking to right
8: Select the left panel, select Format | Order | Bring to Front
9: Change the docking to right

Now you can achieve what you want by changing the width of the panel
you want to slide in and out.

There is an add on called control outline which makes things easier and
which will be built in to the next version.

Signature

Jeff Gaines Damerham Hampshire UK


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.