isMdiContainer

kjellsor

Newcomer
Joined
Nov 22, 2004
Messages
11
Got form problems in vb.net, isMdiContainer = Yes!

ive set form1 to MdiContainer = true
but how do i open form2 embedded in form1
 
Last edited:
kjellsor said:
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
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
 
Back
Top