[.NET] 關於用滑鼠移動圖片
有個題目是說
在表單上picturebox 之外按下滑鼠左鍵可以改變圖片位置
我是用這樣...
If e.Button = Windows.Forms.MouseButtons.Left Then
Do
x = e.X
y = e.Y
PictureBox1.Location = New Point(x, y)
Loop While e.Button = Windows.Forms.MouseButtons.None
End If
想請問看看還有什麼寫法嗎?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.135.48.227
推
03/27 06:23, , 1F
03/27 06:23, 1F