摘要: namespace xxxx{ //发布事件的类 public class TestEventSource { //定义事件参数类 public class TestEventArgs : EventArgs { public readonly char KeyToRaiseEvent; public TestEventArgs(char keyToRaiseEvent) { KeyToRaiseEvent = keyToRaiseEven... 阅读全文
posted @ 2011-08-30 17:28 有一 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 构造函数里设置相应的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... 阅读全文
posted @ 2011-08-30 10:39 有一 阅读(462) 评论(0) 推荐(0) 编辑