prevent winform resized in C#
It is very easy to prevent the form to be resized in the winform application of C# .
Firstly, we should set the 'MaximumSize' and 'MinimumSize' properties to the same dimensions as the Size property. Then we can set:
form.MaximizeBox = false;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
The FormBorderStyle property can be changed into others according to what appearance we want it to display.
Firstly, we should set the 'MaximumSize' and 'MinimumSize' properties to the same dimensions as the Size property. Then we can set:
form.MaximizeBox = false;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
The FormBorderStyle property can be changed into others according to what appearance we want it to display.





1 Comments:
Hello! I'm newbie in Internet, can you give me some useful links? I know only about Yahoo [url=http://yahoo.com]Yahoo[/url] http://yahoo.com Yahoo
By
Anonymous, at 8:00 AM
Post a Comment
<< Home