Advertisement
4_2005-2006 Custom Controls/ Forms/ Menus #149706

Dragging a form by a control

This code is reusable and small enough to paste into whatever you're doing and instantly have a form that has no need for a title bar.

AI

Riepilogo AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Codice sorgente
original-source
In the Mousedown event of the control, insert: 

Sub Command1_MouseDown (Button As Integer, _
Shift As Integer, X As Single, Y As Single)
Dim Ret&
ReleaseCapture
Ret& = SendMessage(Me.hWnd, &H112, &HF012, 0)
End Sub
Commenti originali (3)
Recuperato da Wayback Machine