Drag borderless windows form by mouse [duplicate]
Possible Duplicate: C# - Make a borderless form movable? I have made a form without border in C#, by setting this.FormBorderStyle = FormBorderStyle.None; Now, problem is how can I drag it by mouse? This should be what you are looking for "Enhanced: Drag and move WinForms" public partial class MyDraggableForm : Form { private const int WM_NCHITTEST = 0x84; private const int HTCLIENT = 0x1; private const int HTCAPTION = 0x2; /// /// Handling the window messages /// protected override void WndProc(ref Message message) { base.WndProc(ref message); if (message.Msg == WM_NCHITTEST && (int)message