using System.Runtime.InteropServices;

 

[DllImport("user32.DLL",EntryPoint = "ReleaseCapture")]

private extern static void ReleaseCapture();

[DllImport("user32.DLL",EntryPoint="SendMessage")]

private extern static void SendMessage(System.IntPtr hwnd, int wmsg, int wparam, int lparam);

 

 

private void ... MoseDown ...

 

ReleaseCapture();

SendMessage(this.Handle, 0x112,0xf012,0);

+ Recent posts