disable change size

BrechtLS

Active member
Joined
Apr 5, 2006
Messages
32
Location
Belgium
Programming Experience
1-3
Can you make it impossible to change the size of the form?
 
Thanks for the help.
 
kulrom said:
Just disable maximizeBox (set to false) and set its FormBorderSize to 'Fixed Single' ... this is the simpliest way to achive what you want :)
also don't forget about the fact that people with logitech mice can still maximize your form, just add this code to make sure your form's not maximized

VB.NET:
Expand Collapse Copy
'Form's resize event:
If Me.WindowState = FormWindowState.Maximized Then Me.WindowState = FormWindowState.Normal
 
Thanks a lot for the tip!
 
Back
Top