[.NET] 關於用滑鼠移動圖片

看板Visual_Basic作者 (恬恬)時間17年前 (2007/03/26 20:06), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/1
有個題目是說 在表單上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
文章代碼(AID): #161xSm63 (Visual_Basic)