Add the following to your Form:
protected override CreateParams CreateParams
{
get
{
CreateParams cp = base.CreateParams;
cp.Style |= 0x40000;
return cp;
}
}
though I usually use:
protected override CreateParams CreateParams
{
get
{
CreateParams cp = base.CreateParams;
{
cp.Style |= 0x20000 | 0x80000 | 0x40000;
}
return cp;
}
}