Disposes of the resources, other than memory, used by the System.Windows.Forms.MainMenu.
Call MainMenu.Dispose(bool) when you are finished using the System.Windows.Forms.MainMenu. The MainMenu.Dispose(bool) method leaves the System.Windows.Forms.MainMenu in an unusable state. After calling MainMenu.Dispose(bool), you must release all references to the System.Windows.Forms.MainMenu so the memory it was occupying can be reclaimed by garbage collection.
Always call MainMenu.Dispose(bool) before you release your last reference to the System.Windows.Forms.MainMenu. Otherwise, the resources the System.Windows.Forms.MainMenu is using will not be freed until garbage collection calls the System.Windows.Forms.MainMenu object's destructor.