Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个带有 2 个面板的拆分容器。在第一个面板中是 Treeview 和另一个中的 Datagridview。
当我移动拆分器时,为了能够看到更多的树视图,Datagridview 会被“推”出风中
您需要将Dock每个窗格中控件的属性设置为Full.
Dock
Full
如果窗格中有多个控件,则需要设置它们的Dock或Anchor属性以实现所需的行为。
Anchor
次要的一点,但你想要的码头风格是Fill,不是Full。
Fill