creating a MDI application - child form question??

  • Thread starter Thread starter Paul M
  • Start date Start date
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.
 
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
=============
 
* "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()
///
 
Back
Top