Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create a New MDI Project 1

Status
Not open for further replies.

joeller

Programmer
Apr 9, 2009
2
US
In thread732-1462971 dijfrear stated

"As a side note, if this is a new project you can start a new MDI Project and have Visual Studio create a good template for you, including the menu's and buttons to cascade and arrange the windows. "

In neither VS 2005 or 2008 have I been able to find a template that will allow you to create a new MDI Project. All I've been able to find is new Windows application then change the IsMDIContainer property on the initial form to true. Then you still have to add all your own memories and child forms. Is this an MS template that was not included on my install or is this a user created template?
 
In 2008.

Start a new Windows Forms Application project.

In the Solution Explorer, right click on the project's name and select Add and then select New Item.

From the list select MDI Parent Form.

VS will then create a new MDI parent with menus, a toolbar and a status bar. Some of the menu and toolbar items have working event handlers provided. It also provides a basic child form.

If you want this form to be the startup form, open Program.cs and replace:
Application.Run(new Form1());
with:
Application.Run(new MDIParent1());

You can then delete the auto-created Form1.
 
Bozhe Moi! Why didn't I try that! And I saw the the MDIParent on the addlist too, but never thought to pull one in and see what it looked like. mej Tak
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top