How do I add a Control to a Container in an inherited WinForm

不问归期 提交于 2019-12-01 07:35:49

This MSDN article gave me the answer.

"Not all controls support visual inheritance from a base form. The following controls do not support the scenario described in this walkthrough: WebBrowser, ToolStrip, ToolStripPanel, TableLayoutPanel, FlowLayoutPanel, DataGridView. These controls in the inherited form are always read-only regardless of the modifiers you use (private, protected, or public)."

I used a docked Panel and a SplitContainer instead of a TLP, and now I can drop anything I want into them.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!