I want to start an application with the main form shrunken such that only the title bar and the menu bar are visible. Later on the full form height is to be restored.

How do I figure out the height of the menu bar avoiding manual trial and error at design time?