Resolved Change order of docked controls

aaaron123@roadrunner.com

Well-known member
Joined
Jan 23, 2011
Messages
47
Programming Experience
10+
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?
 

jmcilhinney

VB.NET Forum Moderator
Staff member
Joined
Aug 17, 2004
Messages
14,350
Location
Sydney, Australia
Programming Experience
10+
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