我自定义了一个控件TextBoxIP
添加了自定义事件IPBoxValueChanged
可以在调用form中添加下面代码实现这个事件
this.TextBoxIP.IPBoxValueChanged += new TextBoxChangedHandle(TextBoxIP_UserControlValueChanged);不过我想在自定义控件属性栏中添加这个事件,双击可以自动添加上面的命令,就像c#添加其他事件一样,如何实现啊??谢谢各位高手啦
添加了自定义事件IPBoxValueChanged
可以在调用form中添加下面代码实现这个事件
this.TextBoxIP.IPBoxValueChanged += new TextBoxChangedHandle(TextBoxIP_UserControlValueChanged);不过我想在自定义控件属性栏中添加这个事件,双击可以自动添加上面的命令,就像c#添加其他事件一样,如何实现啊??谢谢各位高手啦
this.TextBoxIP.IPBoxValueChanged += new TextBoxChangedHandle(TextBoxIP_UserControlValueChanged); 则给IPBoxValueChanged事件贴上 DefaultEvent 标签