0

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:

enter image description here

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?

4

1 回答 1

1

远射,但将每个(treeview 和 tabcontrol)放在单独的面板(Panel1 和 Panel2)中,并将 treeview 和 tabcontol 分别设置为 Fill。然后将这些单独的面板(Panel1 和 Panel2)放入一个面板(Panel3)中,在 Panel 3 中将 Panel1 设置为左​​侧,将 Panel2 设置为右侧。

编辑:DonBoitnott 所说的可能是最好的解决方案(TableLayoutPanel)

于 2013-08-29T18:44:53.110 回答