How do I “hide” controls that my control uses from the toolbox?

前端 未结 2 378
北恋
北恋 2020-12-10 11:14

I have developed a control in C#. Among other things this control can popup other controls at runtime. When you include the assembly in Visual Studio, the control that I c

2条回答
  •  南笙
    南笙 (楼主)
    2020-12-10 11:55

    Add the [ToolboxItem(false)] attribute to the classes that you don't want to show up in the toolbox.

提交回复
热议问题