Procedure TForm1.Button1MouseDown(Sender: TObject; Button: TMouseButton;Shift: TShiftState; X, Y: Integer);constsc_DragMove=$F012;beginReleaseCapture;Button1.Perform(WM_SYSCOMMAND, sc_DragMove, 0);end;