JavaScript Editor JavaScript Editor     JavaScript Debugger

Previous Section Next Section

Main Page

Changing a Menu Item's Caption at Run Time

To change a menu item's caption at run time, you only have to set its Text property. Here's an example:

Private Sub MenuItem1_Popup(ByVal sender As Object, _
    ByVal e As System.EventArgs) Handles MenuItem6.Popup
    MenuItem1.Text = "I've been clicked!"
End Sub
Previous Section Next Section

JavaScript Editor Free JavaScript Editor     JavaScript Editor