Remove Min/Max Buttons From an MDI Form
Category:Forms and Controls
Version Compatibility: Visual Basic 6
I previously had a lot of trouble finding code to deal with this on an MDI Form in VB6. There were samples to disable the close button, but those didn't port correctly for the SC_MINIMIZE/SC_MAXIMIZE. The following code uses basic API calls to intercept window creation and change styles. Works under XP in VB6 SP5.
Instructions: Copy the declarations and code below and paste directly into your VB project.