A previous FAQ of mine shows how to remove the title bar from a userform or window. Great. But now you can't move the form/window ... or can you? Read on.
More API programming I'm afraid but the code is fairly short
Put the following code in the general declaration section
Private Declare Function ReleaseCapture Lib "user32" () As Long
Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Now in your form mousedown event for VB use:
Private sub form1_mousedown(ByVal Button As Integer,Byval Shift as integer,ByVal X as single,ByVal Y as Single)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.