Gets the System.Windows.Forms.MainMenu that contains this menu.
The System.Windows.Forms.MainMenu that contains this menu.
This method allows you to obtain a reference to the System.Windows.Forms.MainMenu this menu is currently located in. This property returns null if the menu is not contained in a System.Windows.Forms.MainMenu. This can occur if the menu is contained in a System.Windows.Forms.MenuItem or System.Windows.Forms.ContextMenu, or if the menu is not contained in any menu. You can use this property to determine whether a menu is currently being used, and also to determine where.