开发者

c# resizing controls in splitcontainer

开发者 https://www.devze.com 2023-01-25 08:34 出处:网络
I have a splitcontainer with 2 panels.In the first panel is a Treeview and a Datagridview in the other.

I have a splitcontainer with 2 panels. In the first panel is a Treeview and a Datagridview in the other.

Wh开发者_如何学Goen I move the splitter, to be able to see more of the treeview, the Datagridview gets 'pushed' out of the wind


You need to set the Dock property of the control in each pane to Full.

If you have multiple controls in a pane, you'll need to set their Dock or Anchor properties to achieve the behavior you want.


Minor point, but the dock style you want is Fill, not Full.

0

精彩评论

暂无评论...
验证码 换一张
取 消