Avonelle's Tech Blog

Go Back

WinForms MenuStrip Merge Secret Sauce

I’ve been experimenting with merging my MDIChild and MDIParent menus. My goal was to merge menu items within the File menu for each form into one universal File menu, but I was getting two file menus instead.

The secret sauce was that it apparently uses the Text property of the ToolStripMenuItem to match up the menus. And one of my menu items used “File” for the menu name, and the other used “&File” (for Alt-key access.) Once I made both Text properties the same value, it starting working as expected.

Posted by Avonelle on Tuesday, April 28, 2009.

Facebook Twitter