Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (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 by kjellsor
Posted
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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...