Private Sub MDIForm_Load()
Dim myClass As CFormBorder
Set myClass = New CFormBorder
Set myClass.Client = Me
myClass.MinButton = False
myClass.MaxButton = False
Set myClass = Nothing
End Sub
I tried it too. If I called .EnableMenuItem smMaximize, False then the maximize menu is grayed out, however, the max button is still active & works. To remove max & min, disable both this way.... Disabling only one does not remove it from the menubar but does disable the button.
Code:
Dim c As New Class1 ' < change name to whatever your class is named
Set c.Client = Me
c.MaxButton = False
c.MinButton = False