Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hey all,

 

How do i change a mdi child form from within a current mdi child form?

 

Like, for example, in the first mdiChild form, it has a button, and when pressed, i want it to close the current mdiChild form, and show the new one.... i have tried a couple of methods, but all it seems to do is close the current mdiChild, and the parent is blank :(

 

Help!

 

Cheers

  • *Experts*
Posted

You have a button and you want to show a new instance of another form? If yes then:

Dim someform As New SomeForm1()
someform.MdiParent = Me.MdiParent
someform.Show()
Me.Close()

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...