C# 鼠标拖动控件源码

时间:2011-12-31 05:35:09
【文件属性】:

文件名称:C# 鼠标拖动控件源码

文件大小:3KB

文件格式:RAR

更新时间:2011-12-31 05:35:09

C# 鼠标拖动 源码

/**////

/// 构造控件拖动对象 /// /// 需要拖动的控件 public ControlMove(Control moveControl) { // // TODO: 在此处添加构造函数逻辑 // _MControl = moveControl; _MControl.MouseDown += new MouseEventHandler(this.Control_MouseDown); _MControl.MouseUp += new MouseEventHandler(this.Control_MouseUp); _MControl.MouseMove += new MouseEventHandler(this.Control_MouseMove); _MControl.Click += new System.EventHandler(this.Control_Click); //构造8个调整大小触模柄 for (int i = 0; i<8; i++) { _lbl[i] = new Label(); _lbl[i].TabIndex = i; _lbl[i].FlatStyle = 0 ; _lbl[i].BorderStyle = BorderStyle.FixedSingle; _lbl[i].BackColor = BOX_COLOR; _lbl[i].Cursor = _arrArrow[i]; _lbl[i].Text = ""; _lbl[i].BringToFront(); _lbl[i].MouseDown += new MouseEventHandler(this.handle_MouseDown); _lbl[i].MouseMove += new MouseEventHandler(this.handle_MouseMove); _lbl[i].MouseUp += new MouseEventHandler(this.handle_MouseUp); } CreateTextBox(); Create(); //Control_Click((object)sender, (System.EventArgs)e); } #endregion


【文件预览】:
控件拖动.txt
www.pudn.com.txt

网友评论

  • 感觉还行吧。。。
  • 就一个文本文件,和资源简介里的内容一样。