Disabling Maximize Button on an MDI FORM???? 
Author Message
 Disabling Maximize Button on an MDI FORM????



Quote:
> Anybody know how to disable the Maximize Button on an MDI Form????

I'm not sure if you can override this by hooking into the style bits of the
form (which is not an easy task and may not be possible with a VB generated
MDI form).

However, you can control this simply in the Resize event by checking the
.WindowState property of the form and reseting the form to the size you
want. The drawback of this method is that the form will briefly flash to
maximized before you can reset it. Another way to do this is to intercept
the windows message WM_GETMINMAXINFO (if I remember correctly) and discard
the resizing. To do this you will need VB5 or a sub-classing control with
earlier versions of VB.

Note, however, that this is typically non-standard Windows behavior and can
confuse your users. You may want to think about other possible ways to
implement your UI unless you have a compelling reason to use this method.

--
Frank Carr



Tue, 01 Feb 2000 03:00:00 GMT  
 Disabling Maximize Button on an MDI FORM????

Hi Everybody,

Anybody know how to disable the Maximize Button on an MDI Form????

Thanks,

Robert Hildebrand



Tue, 01 Feb 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Disable Maximize under MDI Form

2. How to disable MDI form's maximize option

3. How to disable maximize on MDI form ?

4. How to disable minimize/maximize/resize on an MDI Form

5. Disallowing maximize button on MDI child form

6. Hiding the maximize/restore button on MDI form

7. How to hide the maximize/restore and close-button on a maximized form

8. Maximized MDI child form Covering Status bar on MDI parent

9. Disable Close Button on MDI Child Form? VB5

10. Disabling Min and Max buttons on MDI Form

11. Disabling Min, Max, and Close buttons on MDI form

12. MDI FORM - HOW TO DISABLE THE MAX BUTTON

 

 
Powered by phpBB® Forum Software