简体   繁体   中英

How do I resize a docked control?

So I have a treeview, that is docked in the left side of a panel. I also have a tabcontrol docked in the right side of a panel. I've worked out most of the visual glitches in my application, but no amount of my internet research/blind testing will work for this glitch..

The problem is, the bottoms of the treeview and the tabcontrol don't match up:

在此处输入图片说明

I can't find any way to make the treeview's height smaller or the tabcontrol's larger. Since it is docked, any time I manually change the size, it just changes back. Is there any way to use some visual style or size assignment to fix this?

Long shot but put each (treeview and tabcontrol) inside seperate panels (Panel1 and Panel2) and set treeview and tabcontol to Fill respectivly. Then put those seperate panels (Panel1 and Panel2) into one panel (Panel3) set Panel1 to left and Panel2 to right in Panel 3.

EDIT: What DonBoitnott said is probably the best solution (TableLayoutPanel)

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