Retrieves a Form object that identifies the form that currently hosts the MainMenu control.
public Form getForm()
Returns a Form object that identifies the form that currently hosts the MainMenu control. If the MainMenu control is not currently hosted on any form, this method returns null.