开发者

c# resizing controls in splitcontainer

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜