• Advertisement
Sign in to follow this  

[.net] how do I create this kind of gui in .net?

This topic is 4000 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

pic: (I used DgeeMe here as a model) Free Image Hosting at www.ImageShack.us Here, the sub-windowforms are localized in the main form. In Java, I can use a JDesktopPane object. How about in .net? Thanks for replies.

Share this post


Link to post
Share on other sites
Advertisement
Shouldn't you be able to simply create the subforms and add them as children of the main form?

The forms designer toolbox doesn't have it as an option, but I don't see why you couldn't define another form then simply add it to the parent form...

I haven't tried it or anything so I may be completely wrong.

I think I remember once reading about how to do this in a discussion about how to create a document container (like how MS Word has multiple documents inside it)...

Share this post


Link to post
Share on other sites
This type of application is called a MDI Application, a web search for that term brings up loads of tutorials, but basically your container form needs its IsMDIContainer property set, and it needs to set itself as the child form's parent (via their MdiParent property).

Share this post


Link to post
Share on other sites
It's called a Multiple Document Interface (MDI). Here's the first hit on google (a tutorial).

Share this post


Link to post
Share on other sites
Ahh yes, I had forgotten the term... I sorta figured that windows forms couldn't accept another windows form as a child by default... but that MDI form property seems to be the ticket.

Sometimes all it takes is being pointed in the right direction, because you don't know the terms or acronyms that apply to your specific need. :)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement