Search code examples
c#winformswindows-7resizeformborderstyle

How do I get the FixedSingle FormBorderStyle to be respected by Windows 7?


To prevent the user from resizing a form, I set its FormBorderStyle to FixedSingle, as recommended here:

Disable Resizing of a Windows Form

This works on XP, but on Windows 7 it doesn't. What has to be done to get it to work on Windows 7 also?


Solution

  • You could set MinimumSize equal to MaximumSize on the form.