Option ExplicitPrivate Declare Function GetSystemMenu Lib "user32" (ByVal hwnd As Long, ByVal bRevert As Long) As LongPrivate Declare Function DeleteMenu Lib "user32" (ByVal hMenu As Long, ByVal nPosition As Long, ByVal wFlags As Long) As Long'ConstantesConst SC_SIZE = &HF000Const SC_MOVE = &HF010Const SC_MINIMIZE = &HF020Const SC_MAXIMIZE = &HF030Const SC_CLOSE = &HF060Const SC_RESTORE = &HF120Const MF_SEPARATOR = &H800Const MF_BYPOSITION = &H400Const MF_BYCOMMAND = &H0Private Sub MDIForm_Load()Dim hwnd&, hMenu&, Success&Dim i%hwnd = Me.hwndhMenu = GetSystemMenu(hwnd, 0)'Quitar todos (va de 0 a 8)For i = 8 To 0 Step -1Success = DeleteMenu(hMenu, i, MF_BYPOSITION)NextExit Sub'Usa esto para quitar los menús que te interesen:Success = DeleteMenu(hMenu, SC_SIZE, MF_BYCOMMAND)Success = DeleteMenu(hMenu, SC_MOVE, MF_BYCOMMAND)Success = DeleteMenu(hMenu, SC_CLOSE, MF_BYCOMMAND)'Success = DeleteMenu(hMenu, SC_MINIMIZE, MF_BYCOMMAND)'Success = DeleteMenu(hMenu, SC_MAXIMIZE, MF_BYCOMMAND)'Success = DeleteMenu(hMenu, SC_RESTORE, MF_BYCOMMAND)End Sub