This will disable everything
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() For I = 0 To 7 RemoveMenu GetSystemMenu(hwnd, 0), 0, MF_BYPOSITION Next I End Sub




Reply With Quote