private void ContextMenu_ItemClicked(object sender, ToolStripItemClickedEventArgs e) {
MessageBox.Show( ( (ToolStripMenuItem)e.ClickedItem ).ToString() );
}
Clicking on the menu, we now get the entire item's text as a usable string. If you assigned accelerator keys (ampersand symbol "&"), remember that they'll show up in the menu text as well. Tip - you can also get the menu item's content through the Text property: MessageBox.Show( ((ToolStripMenuItem)e.ClickedItem).Text );