How to make windows form have no border on side c# code example
Example 1: c# winform remove button border
button.FlatStyle = FlatStyle.Flat;
button.FlatAppearance.BorderSize = 0;
Example 2: C# move form without border
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);
}