hey, i wanna do as i said in the subject, any method to do so with an API or such?
Printable View
hey, i wanna do as i said in the subject, any method to do so with an API or such?
Sure you can!
http://www.vb-world.net/tips/tip117.html
Add the following to your Form.
Code:Private Declare Function GetSystemMenu Lib "user32" (ByVal hwnd As Long, ByVal bRevert As Long) As Long
Private Declare Function RemoveMenu Lib "user32" (ByVal hMenu As Long, ByVal nPosition As Long, ByVal wFlags As Long) As Long
Private Const MF_BYPOSITION = &H400&
Private Sub Form_Load()
RemoveMenu GetSystemMenu(hwnd, 0), 6, MF_BYPOSITION
End Sub