I'm looking for a way to control the order in which the items dock to the top of my control.
I've noticed as I add children to my control (in the designer, or through code), the newest child is always at the top. I'd like for the newer children to be on the bottom, and the oldest to be at the top.
Is there a way to do this through code? In the WinForms designer, RightClick->Order->BringToFront
/ SendToBack
is doing something similar to what I want to do, but how can this be done programmatically?
Use these methods:
myControl.SendToBack();
myControl.BringToFront();