摘要:
最近写了几个控件,继承Control的组件。再次体会了下.net的event的含义1,定义事件参数 class myEventArgs:EventArgs { 里面可以定义事件参数的属性;(e) } 2,定义事件类 class myEventClass { MyEventArgs _eventArgs = new MyEventArgs(); delegate void EventHandler(object sender, MyEventArgs e); event EventHandler ReciveData; public void OnReciveDat... 阅读全文
摘要:
public partial class tspControl : UserControl { public tspControl() { InitializeComponent(); SetStyle(ControlStyles.SupportsTransparentBackColor | ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint | ControlStyle... 阅读全文