How can you make it so you can drag a form around that doesn't have any border or anything, the answer is probably simple but hey, so am I. Thanks.
Printable View
How can you make it so you can drag a form around that doesn't have any border or anything, the answer is probably simple but hey, so am I. Thanks.
VB Code:
Public Const WM_NCLBUTTONDOWN = &HA1 Public Const HTCAPTION = 2 Public Declare Function ReleaseCapture Lib "user32" () As Long Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long Sub Form_MouseDown(Button as integer, x,y,shift) ReleaseCapture SendMessage hwnd, WM_NCLBUTTONDOWN, HTCAPTION, 0& end sub