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
.
精彩评论