Form without border style
I came across a problem. I am using "FormBorderStyle.None" and when I click my running application icon in the taskbar it does not minimize as it should, although when I use something, but "FormBorderStyle.None" seems to work fine. Please advise me a good way to solve this problem. Thank!
+2
mail_321
source
to share
1 answer
You must override CreateParams:
public partial class Form1 : Form {
protected override CreateParams CreateParams {
get {
CreateParams par = base.CreateParams;
par.Style = par.Style | 0x20000; // Turn on the WS_MINIMIZEBOX style flag
return par;
}
}
}
Check this thread for an explanation.
+3
source to share