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.
First, select the form. Then, go to the properties menu. And change the property "FormBorderStyle" from sizable to Fixed3D or FixedSingle.
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.
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.
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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With