Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I prevent a user from resizing a window in my C# application?

Tags:

c#

winforms

How do I prevent resizing my application window?

How can I do that?

like image 848
Mark Avatar asked Sep 20 '10 11:09

Mark


People also ask

What statement you will write to prevent the user from resizing the window at runtime?

1. FormBorderStyle -> FixedSingle.

How do I stop a browser window from resizing after a specific size?

You can not control the size of the window. You can use CSS to set min-width and min-height properties to ensure your page layout stays sane. using 'window. open' I can open a page with a fixed height width.


1 Answers

On the main Form (or any Form that you don't want to be resizable), change the FormBorderStyle property to Fixed______ (FixedSingle, Fixed3D, FixedDialog, FixedToolWindow).

like image 133
colithium Avatar answered Oct 07 '22 08:10

colithium