VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Drag form without titlebar

Kamilche  (35 Submissions)   Windows API Call/Explanation   Visual Basic 3.0   Beginner   Wed 3rd February 2021

Drag a form that has no titlebar! Add the routine listed below, and call it in the 'MouseDown' event of the form (or a control on the form): MoveWindow Me.Hwnd

API Declarations
Private Declare Function ReleaseCapture Lib "user32" () As Long
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long

Rate Drag form without titlebar (7(7 Vote))
Drag form without titlebar.bas

Drag form without titlebar Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters