For more information about cookies, please see our Privacy Policy, but you can opt-out if you wish. Accept Reject Read More. Close Privacy Overview This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website.
We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience. Necessary Necessary. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams?
Collectives on Stack Overflow. Learn more. Disable resizing of a Windows Forms form Ask Question. Asked 10 years, 2 months ago. Active 3 months ago. Viewed k times. How do I turn off the user's ability to resize a Windows Forms form? I'm having it resize itself on a click. Peter Mortensen Ben Wilson Ben Wilson 2, 4 4 gold badges 19 19 silver badges 20 20 bronze badges. Add a comment.
Active Oldest Votes. Take a look at the FormBorderStyle property form1. FixedSingle; You may also want to remove the minimize and maximize buttons: form1. James Hill James Hill Setting ControlBox to false is not good enough. First, select the form. You will need to log off, and log on to make it active. After that, windows will no longer automatically maximize.
One more thing…Subscribe to my newsletter and get 11 free network administrator tools, plus a 30 page user guide so you can get the most out of them.
This will also turn off the side by side zooming i believe move window to the side of the screen , which I use extensively. Thanks this worked great! Although i needed to opposite! The window would resize and mess up our present resolution. I also want to disable the clicking on the titlebar maximizing the window I have a maximize button if I want it.
I want to disable maximizing by either clicking or double clicking the titlebar. I am a web master and used to MAC.
0コメント