以下是引用gzxlq在2007-1-18 20:20:18的发言:
版主,能给代码吗?

仍然自由自我,永远高唱我歌,走遍千里...
2007-01-19 17:18
2007-01-19 17:46
2007-01-19 17:47
全局变量
dim MousePoint as Point
dim mouseDown as bool = false
Form1_MouseDown事件中
if e.Button = MouseButtons.Left then
mouseDown = true
MousePoint = new Point(e.X,e.Y)
end if
Form1_MouseMove事件中
if e.Button = MouseButtons.Left then
if mouseDown then
Me.Panle1.Top = MousePoint.X
Me.Panle1.Left = MousePoint.Y
end if
end if

2007-01-21 01:39