
Form with minimise button only?
'**************************************
'Windows API/Global Declarations for :Di
' sable 'X' on Forms (Including MDI Child
' Forms)
'**************************************
' Place this in a module:
Public Declare Function GetSystemMenu Lib "user32" (ByVal hwnd As Long,
ByVal bRevert As Long) As Long
Public Declare Function RemoveMenu Lib "user32" (ByVal hMenu As Long, ByVal
nPosition As Long, ByVal wFlags As Long) As Long
Public Const SC_CLOSE = &HF060&
Public Const MF_BYCOMMAND = &H0&
Quote:
> Ok, can you tell me how? Cause I can't find anything about it in the MSDN.
> Erik
> > Yes, U can disable the X button in VB