Locking a form

J

john sutor

How can you lock a form so a user cannot resize the form?
Hint: the "Locked" property does not work
 
N

Nicholas Paldino [.NET/C# MVP]

John,

Have you tried setting the MaximumSize and MinimumSize properties to the
same value?

Hope this helps.
 
J

Jon Skeet [C# MVP]

john sutor said:
How can you lock a form so a user cannot resize the form?
Hint: the "Locked" property does not work

If you look at the Form.SizeGripStyle example, it gives a good idea of
how it can be done.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top