JavaScript Editor JavaScript Editor     JavaScript Debugger

Previous Section Next Section

Main Page

Disabling Menu Items

To disable, or "gray out" a menu item, so that it can't be selected, you set its Enabled property to False. Here's an example:

Private Sub MenuItem8_Click(ByVal sender As System.Object, _
    ByVal e As System.EventArgs) Handles MenuItem8.Click
    MsgBox("Disabling item 1...")
    MenuItem5.Enabled = False
End Sub
Previous Section Next Section

JavaScript Editor Free JavaScript Editor     JavaScript Editor