![]() ![]() | ||
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
![]() ![]() | ||