Resolved Change order of docked controls

Post number 2 has been selected as best answer.

Well-known member
Jan 23, 2011
Programming Experience
I have 15 usercontrols all docked to the bottom.

So it displays as 15 narrow rectangles at the bottom of the form.

I now want the 5th one to be in the 6th position and the 6th one be in the 5th position.

That is, I want to interchange two of then on the form.

I don't want to delete the stack and rebuild it if there is a better way.

Is there a better way?


VB.NET Forum Moderator
Staff member
Aug 17, 2004
Sydney, Australia
Programming Experience
The order in which they dock is determined by the z-order of the controls, which is the same order that determines which is in front of which when controls overlap. One option is to right click a control in the designer and select Bring to front or Send to back. For more fine-grained control, open the Document Outline window. That will display the hierarchical control structure based on the z-order and allow you to move any control wherever you like, including into or out of a container.
Top Bottom