Does anyone know how to remove or disable (preferably gray out) the Maximise button on an MDI Parent form?
Tokhra
Printable View
Does anyone know how to remove or disable (preferably gray out) the Maximise button on an MDI Parent form?
Tokhra
Code:Private Declare Function RemoveMenu Lib "user32" (ByVal hMenu As Long, ByVal nPosition As Long, ByVal wFlags As Long) As Long
Private Declare Function GetSystemMenu Lib "user32" (ByVal hwnd As Long, ByVal bRevert As Long) As Long
Private Const MF_BYPOSITION = &H400&
Private Sub Form_Load()
RemoveMenu GetSystemMenu(hwnd, 0), 4, MF_BYPOSITION
End Sub
Thats great thanks.
Know how to make the actual button gray as well? If not, no problem.. at least you cant make the window maximised :)