creating a MDI application - child form question??

P

Paul M

hi there,

i created a very simple VB.NET windows application with forms, form1 and
form2.
Form1 has been set to isMDIContainer=true, but i cant find a property for
form2 to set it to mdiChild?? am i missing something here??

thanks,
P.
 
M

Mark Broadbent

try the following

Form myForm = new Form();

myForm.MdiParent = this;

myForm.Show();



As you see, just to confuse slightly, you are setting the childforms
MdiParent property.



Hope this helps


--

Br,
Mark Broadbent
mcdba , mcse+i
=============
 
H

Herfried K. Wagner [MVP]

* "Paul M said:
i created a very simple VB.NET windows application with forms, form1 and
form2.
Form1 has been set to isMDIContainer=true, but i cant find a property for
form2 to set it to mdiChild?? am i missing something here??

In 'Form1':

\\\
Dim f As New Form2()
f.MdiParent = Me
f.Show()
///
 

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