December 11th, 2012, 02:02 PM
How To Move a Border-less Dialog
As the title sugest, it is -standard- not possible to move a boderless dialog
(Keep mouse button depressed and move the cursor)
You have to make it.
So I came up with:
but it does not work, however if I change pressed to depressed it works partly.
private void Dialog1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
while (Mouse.LeftButton == MouseButtonState.Pressed)
this.Location = new Point(MousePosition.X, MousePosition.Y);
Last edited by TBBW; December 11th, 2012 at 02:06 PM.
Reason: code correction
Click Here to Expand Forum to Full Width