自定義winform控件如何添加到工具箱

1.  工具=》選項=》Windows窗體設計器=》常規=》AutoToolBoxPopulate=》True工具 2. 進入工具箱 反鍵點「選擇項」而後在裏面找設計 3.  在自定義控件代碼類上加[ToolboxItem(true)] orm     [ToolboxItem(true)]     public partial class WMSPageControl : UserControl
相關文章
相關標籤/搜索