I already got the move part, that's easy, what I'm having trouble with is when I click on the form and try to move it, it shifts a little, that is really annoying, I just want it to be smooth. I want it to be as if I'm moving the form from the title bar. Here's my code.
vb Code:
  1. Public Class Form1
  2.     Dim Down As Boolean = False
  3.     Dim Local1 As Point
  4.     Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  5.  
  6.     End Sub
  7.  
  8.     Private Sub Form1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseDown
  9.         Down = True
  10.         Local1 = e.Location
  11.     End Sub
  12.  
  13.     Private Sub Form1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseMove
  14.         If Down = True Then
  15.             Me.Location = MousePosition - Local1
  16.         End If
  17.     End Sub
  18.  
  19.     Private Sub Form1_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseUp
  20.         Down = False
  21.     End Sub
  22. End Class