Re: Disable items in menu
Conditionally set the Enabled property in a procedure as and when relevent.
You may also hide it by setting the Visible property, though it is not a recommended technique as users might start wondering where something has vanished.
vb Code:
MenuName.Enabled = False 'MenuName is the Name of menu/menuItem
Pradeep :)
1 Attachment(s)
Re: Disable items in menu
Code:
Private Sub Form_Load()
Dim Admin As String
Admin = InputBox("Please Enter a Password", "Password")
If Admin = "administrator" Then
mnuAdmin.Enabled = True
Else
mnuAdmin.Enabled = False
End If
End Sub
█ jaypee █