Home All Groups Group Topic Archive Search About

Newbie - MDI Question

Author
18 Nov 2006 11:53 AM
Andy
Hi

I', just starting out building my first real app in VB.Net. In the long run
I want this app to use MDI forms. But, to get the app up and running quick I
plan to implement it's features step by step.
If I no in the beginning just implement some features and use a standard
single form for these, can this form easily be transformed to a MDI child,
so I can implement this form in my MDI app without changing too much of the
code?

/A.

Author
18 Nov 2006 12:38 PM
Ken Tucker [MVP]
Andy,

            You just have to set the form's mdiParent before you show it to
make a form a mdi child

Dim frm As New WindowsApplication1.Form1

frm.MdiParent = Me

frm.Show()



Ken

----------------------

Show quoteHide quote
"Andy" <andy@spamblocker.org> wrote in message
news:%23O0NbfwCHHA.3620@TK2MSFTNGP02.phx.gbl...
> Hi
>
> I', just starting out building my first real app in VB.Net. In the long
> run I want this app to use MDI forms. But, to get the app up and running
> quick I plan to implement it's features step by step.
> If I no in the beginning just implement some features and use a standard
> single form for these, can this form easily be transformed to a MDI child,
> so I can implement this form in my MDI app without changing too much of
> the code?
>
> /A.
>
Author
18 Nov 2006 7:20 PM
RobinS
The answer to your question is "Yes".

Later, you can set the IsMDIContainer property
to True, and add your own MenuStrip, ToolStrip,
and StatusStrip. This is pretty much what
starting with an MDI template does for you.

Robin S.

Show quoteHide quote
"Andy" <andy@spamblocker.org> wrote in message
news:%23O0NbfwCHHA.3620@TK2MSFTNGP02.phx.gbl...
> Hi
>
> I', just starting out building my first real app in VB.Net. In the long
> run I want this app to use MDI forms. But, to get the app up and running
> quick I plan to implement it's features step by step.
> If I no in the beginning just implement some features and use a standard
> single form for these, can this form easily be transformed to a MDI child,
> so I can implement this form in my MDI app without changing too much of
> the code?
>
> /A.
>