How to put an extended WinForms Control on ToolBox

后端 未结 8 1969
自闭症患者
自闭症患者 2020-12-11 02:53

I plan to add functionalities to TextBox with the following:

   public class TextBoxExt : TextBox  
    {
        protected override void OnKeyPress(KeyPress         


        
8条回答
  •  佛祖请我去吃肉
    2020-12-11 03:42

    Any custom control in your project should show up in the Toolbox automatically. I have found that sometimes the controls won't show until you close a re-open Visual Studio. I assume the issue has something to do with caching of the contents of the Toolbox.

提交回复
热议问题