Current location - Recipe Complete Network - Complete cookbook of home-style dishes - How to delete sub-items in the menu bar with code
How to delete sub-items in the menu bar with code
Add MenuItemName. Visible to the departure event to hide this sub-option, for example, when the button 1 is clicked.

Private void button 1_Click (object sender, EventArgs e)

{

bToolStripMenuItem 1。 Visible = false;

}