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.
在我正在编写的布局中,有一个区域显示不同的控件,具体取决于各种条件。
我可以在设计时放置所有这些控件,还是必须在运行时“重新附加”和“删除”每个控件?
您可以在 TableLayoutPanel 单元格中托管一个面板。或任何其他控制容器。您可以根据需要放置任意数量的控件。
例如,您可以使用嵌套的 FlowLayoutPanel。因此您可能不需要手动执行布局管理。