Desktop Functions: Smart Device Functions:
|
Search Results for "ReleaseCapture" in [All]user32
static extern bool ReleaseCapture();
Private Shared Function ReleaseCapture() As Boolean ReleaseCapture will delegate mousedown events to underlying controls.
Public Shared Function ReleaseCapture() As Boolean
ReleaseCapture() You can use the ReleaseCapture() function to provide drag functionality. for example the following code will allow the user to drag a control around a form (you'll have to assign this code to the mousedown event):
public static extern int ReleaseCapture(IntPtr hwnd);
ReleaseCapture(ctrl.Handle); |