Drag borderless windows form by mouse?

This should be what you are looking for Enhanced: Drag and move WinForms.

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.

Result == HTCLIENT) message. Result = (IntPtr)HTCAPTION; } public MyDraggableForm() { InitializeComponent(); } } As the blog post states, this is a way to "fool" the system. This way you don't need to think about mouse up/down events.

You have to register for the MouseDown, MouseUp and MouseMove events and move the form according to the movement of the mouse.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions