Monday, November 19, 2012

Add Menu to MDI Parent Form

MDI (Multiple-Document Interface) applications should have a MDI Parent form which will act as the parent for all other forms in the application. In this post we shall see on how to add a Menu control to an MDI Parent Form.

 1. Create a new / open an existing C# Windows application.
2. Create/Open the form which needs to be set as the MDI Parent form.
3. Open the Properties of the form (View -> Properties Window or Press F4 key)
4. Set the
IsMdiContainer property to true.
5. Open the
Toolbar, drag a Menu Strip control under the Menus & Toolbars section on the MDI Form.
6. Add Vertical and Horizontal Menu items as required.

7. Double click on the Menu Item in the designer to get the menu Event Handler code.
      private void mnuBMICalculator_Click(object sender, EventArgs e)


8. Add the required code in the Menu event handler event.

Search Flipkart Products:

No comments: