文件名称:code0012
- 所属分类:
- Internet/网络编程
- 资源属性:
- [Windows] [Visual C] [Basic/ASP] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 2kb
- 下载次数:
- 0次
- 提 供 者:
- 孔**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
程序实现的思路是在窗体的MouseDown事件(当鼠标在窗体上按下时发生)中获取鼠标相对于窗体的坐标,在MouseOver事件(当鼠标移动时发生)中获取新的鼠标坐标值,显然这两个坐标值的差加上窗体原来的坐标,就是窗体应该移动到的新的坐标值。然后采用From.Move方法把窗体位置移动到新坐标值处即可。-Realize the idea of the procedures in the form of the MouseDown event (when the mouse in the form when pressed) to obtain the mouse coordinates relative to the form in Mouseover events (when the mouse is when) get a new mouse coordinates Obviously, these two coordinates of poor form coupled with the original coordinates, that is, form should be moved to the new coordinates. From.Move methods and then used to form location to the new Office to coordinate values.
相关搜索: 鼠标坐标
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Form1.frm
Project1.vbp
移动无标题栏窗体.txt
Project1.vbp
移动无标题栏窗体.txt