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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top