TUT]How to move a borderless form[TUT
just copy and paste this anywhere in your code:
Remove the spaces in the second line where it says H C L!
Code:
Const WM_NCHITTEST As Integer = &H84
Const H C L IENT As Integer = &H1 'remove spaces from H C L IENT
Const HTCAPTION As Integer = &H2
Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)
Select Case m.Msg
Case WM_NCHITTEST
MyBase.WndProc(m)
If m.Result = H***IENT Then m.Result = HTCAPTION
Case Else
MyBase.WndProc(m)
End Select
End Sub
EDIT: Just to clear up an confusion, this code can go anywhere. At the bottom of your code or right after Public class form1
thank me if i helped 