hendrikbez
Active member
I am new to vb.net, and I want to make a customize winsows form for my sine-in form, it will be a cross, how do I Use the graphics in vb.net 2003.
Thanks
Thanks
Dim myX As Integer, myY As Integer
Private Sub Form_MouseMove(ByVal sender As Object, _
ByVal e As System.Windows.Forms.MouseEventArgs) _
Handles MyBase.MouseMove
If e.Button = MouseButtons.Left Then
Me.Location = New Point(Me.Left + (e.X - myX), _
Me.Top + (e.Y - myY))
End If
End Sub
Private Sub Form_MouseDown(ByVal sender As Object, _
ByVal e As System.Windows.Forms.MouseEventArgs) _
Handles MyBase.MouseDown
myX = e.X
myY = e.Y
End Sub