SkinContextMenuStrip_reform menuStrip_Reform;                  //绑定右键菜单类
 public SkinTextBox_reform()                                    //构造函数
 {
     this.menuStrip_Reform = new SkinContextMenuStrip_reform(); //实例化右键菜单
     this.ContextMenuStrip = this.menuStrip_Reform;             //绑定右键菜单
     this.MouseDown       += MouseDown_reform;                  //注册事件
     this.MouseUp         += MouseUp_reform;                    //注册事件
     this.MouseMove       += MouseMove__reform;                 //注册事件
     this.MouseEnter      += MouseEnter_reform;                 //注册事件--获取控件信息
 }
示例#2
0
 SkinContextMenuStrip_reform menuStrip_Reform;                  //绑定右键菜单类
 public SkinPictureBox_reform()                                 //构造函数
 {
     this.menuStrip_Reform = new SkinContextMenuStrip_reform(); //实例化右键菜单
     this.ContextMenuStrip = this.menuStrip_Reform;             //绑定右键菜单
     this.MouseEnter      += MouseEnter_reform;                 //注册事件
     this.Click           += Click_reform;                      //注册事件
     this.MouseDown       += MouseDown_reform;                  //注册事件
     this.MouseUp         += MouseUp_reform;                    //注册事件
     this.MouseMove       += MouseMove__reform;                 //注册事件
     this.DoubleClick     += DoubleClick_reform;                //注册事件
 }