Search code examples
c#windows-forms-designerdockingpanels

How to make a docked panel go overtop of another docked panel


I have a panel that is docked to the left and another panel that is docked as fill in the middle. my panel on the left starts out with a width of 8 and then it slides open to 295. I need it to go over top of the panel. What it is doing is shoving the entire panel over? Is there any way to get it to go over top of the panel?


Solution

  • What I ended up doing was moving the bringtofront function after the panel had been added. I didnt realize I was doing it before the panel was being added to the window.