Can someone tell me how to drag and/or resize a borderless form?

  • Thread starter Thread starter MyNameIsnt
  • Start date Start date
M

MyNameIsnt

Thanks if you can help me out.
It is for the same source I posted already (which I did figure out the
problem :))
 
Hi,

You can drag it just by putting this code in the form class

protected override void WndProc(ref Message msg)
{
if (msg.Msg == 0x0084) // WM_NCHITTEST
msg.Result = (IntPtr) 2; // HTCAPTION
else
base.WndProc(ref msg);
}

Nirosh.
 
Back
Top