move borderless form

  • Thread starter Thread starter Cc
  • Start date Start date
C

Cc

hi ,
i try this code to move form but the form flick when ever I move the move.

Private Sub Form1_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(e.X, e.Y)

End If

End Sub
 
Back
Top