Prevent Form Resize

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Zytan

    #1

    Prevent Form Resize

    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

  • Armin Zingler

    #2
    Re: Prevent Form Resize

    "Zytan" <zytanlithium@y ahoo.comschrieb
    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 (Formborderstyl e in 2.0) to a fixed* value.


    Armin

    Comment

    • Zytan

      #3
      Re: Prevent Form Resize

      Set the BorderStyle property (Formborderstyl e 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

      Comment

      Working...