|
-
October 12th, 2002, 01:52 PM
#1
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)
-
October 14th, 2002, 08:50 AM
#2
-
October 14th, 2002, 09:59 AM
#3
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
It is the weak who are cruel,
only the strong can be truly gentle!
Szilard
-
October 21st, 2002, 11:40 AM
#4
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
WM.
What about weapons of mass construction?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|