0

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?

Community
  • 1
  • 1
B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862
  • I'm not seeing this on the win7 32-bit system I run. Code sample? Or maybe specific behavior? Maybe you've got a code update that isn't copying from system to system? –  Oct 09 '12 at 18:42
  • 1
    Specific behavior is: when I run it on my XP machine, I can't resize the form; when another uses runs it on his Windows 7 machine, he can. – B. Clay Shannon-B. Crow Raven Oct 09 '12 at 18:50
  • I'd recommend watching him do it if at all possible, then checking executable versions on his machine (possibly in other paths). politely of course :-) –  Oct 09 '12 at 18:53

1 Answers1

1

You could set MinimumSize equal to MaximumSize on the form.

Lior
  • 5,841
  • 9
  • 32
  • 46