-
showing a mdiChild form
OK I am lost in my attempt to upgrade to .NET
In visual basic 6.0 I would type
form2.show
and when I would run the app. it would show form1 as my mdi form and open form2 as the child form ... now I don't have a clue what to do to get form2 to appear on the screen as a child form of form1.
Hopefully this is a simple upgrade for me to learn :)
Thanks to anyone taking the time to help out.
Jym (day one of learning Visual Basic .NET)
-
-
form1.IsMdiContainer= true;
Form2Class newfrm2 = Form2Class.CreateInstance(parameters..);
newfrm2.MdiParent = this;
newfrm2.Show();
//where Form2Class - is the form 2 class name
//and this call is made from form1 body
-
I guess you need this one for VB.NET:
Code:
public sub mySub()
dim frm as new Form2
frm.mdiParent = me
frm.Show()
end sub