摘要:
namespace xxxx{ //发布事件的类 public class TestEventSource { //定义事件参数类 public class TestEventArgs : EventArgs { public readonly char KeyToRaiseEvent; public TestEventArgs(char keyToRaiseEvent) { KeyToRaiseEvent = keyToRaiseEven... 阅读全文
摘要:
构造函数里设置相应的style,并将背景色设为透明this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);this.SetStyle(ControlStyles.ResizeRedraw, true);this.SetStyle(ControlStyles.UserPaint, true);this.BackColor = Color.Transparent;在OnSizeChanged中添加标记,改变全局变量_path protected override void OnSizeChanged(EventA... 阅读全文