C# move form without border

C#
protected override void WndProc(ref Message m)
{
	switch(m.Msg)
	{
		case 0x84:
			base.WndProc(ref m);
			if((int)m.Result == 0x1)
				m.Result = (IntPtr)0x2;
			return;
	}

	base.WndProc(ref m);
}
Source

Also in C#: