Preventing a "Maximize" when double-clicking forms top bar

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Even if I remove the resizing icon (bottom right of form) and remove the
control icons (upper right) I can't seem to prevent inadvertant form
"maximizing" when the top bar is double clicked. How can I supress this?
 
Hi Michael,

Set the FormBorderStyle property to FixedDialog, FixedSingle, or Fixed3D.
*Set the MaximizeBox property to false.*

--
HTH,

Kevin Spencer
Microsoft MVP
Software Composer
http://unclechutney.blogspot.com

If the Truth hurts, wear it.
 
Set the border to some fixed style. This way the form cannot be sized. If
you want to preserve the sizing and disable only the maximizing I'm going to
ask you why.
What sense make the user to be able to resize, but not to maximize size;
after all maxmizing is resizing.

However if you want to do something like this I believe it can be done by
processing the WM_GETMINAMXINFO message
 
I did have the FormBorderStyle property set to Fixed3D. However, I didn't
also have the MaximizeBox set to FALSE. Both of these need to be done.

Thanks
 
Back
Top