kjellsor Posted November 23, 2004 Posted November 23, 2004 (edited) Got form problems in vb.net, isMdiContainer = Yes! ive set form1 to MdiContainer = true but how do i open form2 embedded in form1 Edited November 23, 2004 by kjellsor Quote
lidds Posted November 23, 2004 Posted November 23, 2004 ive set form1 to MdiContainer = true but how do i open form2 embedded in form1 This is off the top of my head and I have only just started vb.net so bear with me, I think it's like this.... Enter this text in Form1 code ' Defines Form2 as a variable dim objForm2 as new Form2 ' Associates Form2 variable as child form for Form1(Me) objForm2.MdiParent = Me ' Shows Form2 objForm2.show() Hope this is right. Simon Quote
Administrators PlausiblyDamp Posted November 23, 2004 Administrators Posted November 23, 2004 you need to set form2's mdi parent property to be the instance of form1 dim f as new Form2 f.MDIParent = me f.show() Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
kjellsor Posted November 23, 2004 Author Posted November 23, 2004 thank you very much PlausiblyDamp Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.