简体   繁体   中英

.Net UserControl - Docking 2 controls

Let say I have 2 controls in a usercontrol :

One (controlA) that have a fixed height and need to be dock in the bottom and an other (controlB) in the top that must fill the leaving space.

If I use bottom dock for controlA and fill dock for controlB it's doesn't work because controlA goes over controlB ...

How can I do this correctly, I'm pretty new to the docking thing ...

I use .Net 3.5 c#

It depends on the order in which you add the controls. Whichever order you're currently adding them in, reverse it :) Right-click on the covered up control and select "Bring to Front" in the designer.

This article covers the problem in a bit more detail.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM