Prevent Form Resize

Z

Zytan

How can I prevent a form from being resized?

The default settings don't really make all that much sense. I realize
you can instruct it to show scroll bars, and thus if one were made
smaller, you can scroll to see all of it. But, I am willing to bet
most people just want to ignore any user request to resize. A lot of
people may mis-click and accidentally resize the app. I know I do on
occassion.

I did a search for this answer a few weeks back, and I think the only
thing I found was to deal with the actual Win32 messages themselves.
Is there a high level way to deal with this?

Thanks for any suggestions,

Zytan
 
A

Armin Zingler

Zytan said:
How can I prevent a form from being resized?

The default settings don't really make all that much sense. I
realize you can instruct it to show scroll bars, and thus if one
were made smaller, you can scroll to see all of it. But, I am
willing to bet most people just want to ignore any user request to
resize. A lot of people may mis-click and accidentally resize the
app. I know I do on occassion.

I did a search for this answer a few weeks back, and I think the
only thing I found was to deal with the actual Win32 messages
themselves. Is there a high level way to deal with this?

Thanks for any suggestions,


Set the BorderStyle property (Formborderstyle in 2.0) to a fixed* value.


Armin
 
Z

Zytan

Set the BorderStyle property (Formborderstyle in 2.0) to a fixed* value.

Of course... Duh. I don't know how I missed that. Ah, because it's
under 'Appearance', instead of 'Behavior'. Even though this one fits
in both categories, so, it's up for grabs. I wonder why the default
value isn't fixed*...

Thanks, Armin!

Zytan
 

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