Disable Form Resizing

  • Thread starter Thread starter Guest
  • Start date Start date
As well as for .NET 1.x by setting the .FormBorderStyle property to any
"Fixed" values.

E.g. this.FormBorderStyle = FormBorderStyle.FixedSingle;

WBR, Alex Meleta
Blog: http://devkids.blogspot.com


-----Original Message-----
From: Mahesh Nimbalkar [mailto:[email protected]]
Posted At: Donnerstag, 19. April 2007 23:58
Posted To: microsoft.public.dotnet.framework.windowsforms
Conversation: Disable Form Resizing
Subject: Disable Form Resizing

How do I disable form resizing for users in Winforms 2.0?
 
You can use the Form border style with a fixed style or you can set the
Form.MinimumSize and MaximumSize to the current size. That way the border
will look normal but dragging the edges wont move them.
 
Back
Top