MoveFormNoBar (8)




Public Sub FormDrag(TheForm As Form)
Declare Sub ReleaseCapture Lib "user32" ()

Declare Function SendMessage Lib "user32" Alias _
"SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, _
ByVal wParam As Integer, ByVal lParam As Long) As Long

ReleaseCapture
Call SendMessage(TheForm.hwnd, &HA1, 2, 0&)
End Sub

Private Sub Form_MouseDown(Button As Integer, _
Shift As Integer, X As Single, Y As Single)
FormDrag Me
End Sub










( moveformnobar8.html )- by Paolo Puglisi - Modifica del 17/12/2023