How To Suppress Maximize & Minimize Buttons on MDI Parent Form (137033)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Standard Edition for Windows 3.0
- Microsoft Visual Basic Professional Edition for Windows 3.0
This article was previously published under Q137033 SUMMARY
This article shows by example how to suppress the maximize and minimize
buttons on an MDI parent form.
On non-MDI forms, you can set the MinButton and MaxButton properties to
False to disable the form's Minimize and Maximize buttons. However, these
properties are not available on an MDI parent form. To disable an MDI
form's Minimize and Maximize buttons, you need to use the SetWindowLong
Windows API function to change the style of the window.
Modification Type: | Minor | Last Reviewed: | 7/13/2004 |
---|
Keywords: | kbhowto kbui KB137033 |
---|
|