Possible Duplicate:
C# – Make a borderless form movable?
Drag borderless windows form by mouse
Ok, I have made a form with a control in it. The form is borderless. The control inside the form is called navigationPanel1. I want to be able to click and drag on the control to move the form. How do i do that?
You have to subscribe for the mouse-down, mouse-up and mouse-move events. In the mouse-move you set the location of your form to the new location (this u have to calculate). the code in mouse-move only should be executet if the mouse-button is down (save this state)