C# resize window without title bar

C#
protected override CreateParams CreateParams
{
	get
	{
		CreateParams cp = base.CreateParams;
		cp.Style &= ~0xC00000;
		return cp;
	}
}
Source

Also in C#: