Re: Multi-window application example



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


David W wrote:
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

.


Loading