Multi-window application example

D

David W

Hi,

I am porting an application from Windows Mobile to the desktop. This is my
first .NET desktop forms application (my experience is in ASP.NET). I am
looking for a sample application that employs a solid programming model for
managing a multi-window application. This application has a lot of
dynamiccally built forms and opens and closes forms as necessary and can
have multiple forms open at once. Its very simple on Windows Mobile because
all forms are always maximized and you can layer forms on top of each other
with no problem.

Thanks for any assistance.

-Dave
 
T

TonySantolaria

Hello Dave,

I think what you are looking for is a Multiple Document Interface (MDI)
Application . It is very easy to construct one in .NET, follow this
simple instructions:

1) Create a parent form: just create a form and set the property
IsContainerMdi to true
2) Create a menu for the parent: you can create a menu and set the
property IsMdiList to true for the standard behaviour
3) Create childs form and set the property MdiParent of them to the
parent form. They will be packed with the mdi parent automatically

Perhaps you would like to use the Hide() method in the childs if you
dont want them to be created and destroyed every time you open/close
them.

Link to ms documentation
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbconmdiapplications.asp

Hope it helps,

Tony Santolaria
 
G

Garry

Dave Hi,

Encouraging answer.

How do you resize a MDI child form to fit the Client Rectangle in the parent
MDI in vb.net without the scroll bars appearing????

I have spent days trying to do this.

It was so easy in VB6

Garry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top