Private Declare Function RemoveMenu Lib "user32" (ByVal hMenu As Long, ByVal nPosition As Long, ByVal wFlags As Long) As Long
Private Declare Function GetMenu Lib "user32" (ByVal hwnd As Long) As Long
Private Const MF_REMOVE = &H1000
Private Sub Form_Load()
RemoveMenu GetMenu(hwnd), 2, MF_REMOVE
'mnuEdit.Visible = False
End Sub
Private Declare Function GetForegroundWindow Lib "user32" () As Long
Private Declare Function SetMenu Lib "user32" (ByVal hwnd As Long, ByVal hMenu As Long) As Long
Private Sub Command1_Click()
'Timer1.Interval=1000
Dim r_form As Long