panel docking issue in c# csharp .net

Whenever I dock a panel at Top, the panel goes into another panel (I have pics before and after setting panel to top).

So here is the complete description. I have 3 panels going across the form, with 2 splitters; that means I have a left, middle, and right panel, with a splitter between left and middle panels and another splitter between middle and right panels.

Left panel is set to dock at left, middle panel is set to dock fill, and right panel is set to dock at right. Left splitter is set to dock left, and right splitter is set to dock right.

Finally, I have tried to dock a panel at the TOP of the MIDDLE panel.

So.... what the hell is going on? As you can see below, the dotted lines show the panel set to TOP, and it is going into and behind the right panel.

Please Help!
SP32-20090523-154203.png
SP32-20090523-154233.png
yaronusaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Nirmalan NagenthiranCommented:
Try this way

Add a main panel into your windows form and set dock to fill

Add another panel inside a main panel and set dock to right (Right panel)
Add another panel inside a main panel and set dock to left (Left panel)
Add another panel inside a main panel and set dock to fill (Middle panel)
 
Add splitters & tabs in relevant places.
Add the panel into the middle panel and now set dock to Top

 
 
 
 
 
 


0
yaronusaAuthor Commented:
If I did exactly as you list it, I ended up not being able to move the splitters during run time, no matter how I set the properties. So I did the following:

Add another panel inside a main panel and set dock to right (Right panel)
Add splitter docked right
Add another panel inside a main panel and set dock to left (Left panel)
Add a splitter docked left
Add another panel inside a main panel and set dock to fill (Middle panel)

Add tabs where necessary.
Add the panel into the middle panel and now set dock to Top
.

That works.... WTF? Why is this? Anywhoo, thank you so much for taking the time to help, could not do it without you.

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
yaronusaAuthor Commented:
By the way, I did all of the above by first add a main panel into your windows form and set dock to fill, just as you originally suggested.
0
thepbacCommented:
Is it ?

docking.jpg
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.