Panel.Dock Fill ignoring other Panel.Dock setting

后端 未结 10 1080
我寻月下人不归
我寻月下人不归 2020-12-04 06:02

If you create a panel on a form and set it to Dock=Top and drop another panel and set its Dock=Fill, it may fill the entire form, ignoring the first panel. Changing the tab

10条回答
  •  南方客
    南方客 (楼主)
    2020-12-04 06:41

    Right click on the panel with Dock=Fill and click 'Bring to Front'.

    This makes this control be created last, which takes into account the Dock settings on other controls in the same container.

提交回复
热议问题