Private Sub PictureBox1_MouseDown(ByVal sender As Object, _
ByVal e As MouseEventArgs) Handles PictureBox1.MouseDown
Dim bmp As New Bitmap(PictureBox1.Width, PictureBox1.Height)
PictureBox1.Image = bmp
g = Graphics.FromImage(bmp)
If (e.Button = MouseButtons.Left) Then
x0 = e.X
y0 = e.Y
ElseIf (e.Button = MouseButtons.Right) Then
PictureBox1.Refresh()
End If
End Sub
รบกวนดู Code ให้ด้วยครับ
ขอบคุณครับ
Tag : .NET, Ms SQL Server 2008, VS 2008 (.NET 3.x), Windows