Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove the ability to resize

Tags:

c#

winforms

Goal: Don't want the user to make changes in the program's size.

Problem: Don't know how to remove that icone thing that allows user to resize the screen.

hello

like image 900
What'sUP Avatar asked Feb 20 '11 15:02

What'sUP


People also ask

How do I stop a form from resizing?

First, select the form. Then, go to the properties menu. And change the property "FormBorderStyle" from sizable to Fixed3D or FixedSingle.

How do I stop browser from resizing?

If you are using a Windows Computer you can adjust the re-sizing by right-clicking on the Chrome Shortcut to access Properties. From the Properties menu go to Compatibility tab. From there you will see a Disability display 'Disable display scaling on high DPI' option.

How do I stop HTML from resizing?

To prevent a text field from being resized, you can use the CSS resize property with its "none" value. After it you can use the height and width properties to define a fixed height and width for your <textarea> element.


1 Answers

You should set the FormBorderStyle property of your form to a style that forbids resizing (any of the Fixedxxx styles will do).

Still, remember that, especially for main windows, often locking the size of the window is not a good choice in terms of program usability; resize logic is often boring and not easy to get right, but in general it's worth the effort (and the various Dock and Fill properties of the controls are there to help).

like image 69
Matteo Italia Avatar answered Sep 23 '22 09:09

Matteo Italia