Monday, November 19, 2012

Creating MDI Parent Forms

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 create a MDI Parent form in a C# Windows Application.

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. Notice that the Form UI Changes as follows.

Now this form is set as the MDI Parent form for the application, we can now add Menus to this form and open other forms in the application as the child forms of this Form.

Search Flipkart Products:

No comments: