Jump to content
Xtreme .Net Talk

need help on MDI form.


Recommended Posts

Guest etron_neo
Posted

I have one form which is MDIParent (formA), now i call a MDIchild (formB) from formA.

 

code:

Dim f as new formB

f.MDIParent=Me

f.show()

 

On formB, i have a button to call another normal form (formC).

My question is, how to make formC as child for formA?

 

thank you for your replies... i really appreciate it....

Guest afrinspray
Posted

Have you tried making formB an MdiContainer, and then,

 

Dim fC as new formC

fC.MDIParent = Me

fC.Show()

 

(this would be in the code for formB)?

 

I know that you can have multiple MDI forms in a solution, but I don't know if one can be the child of another. I believe that it is possible though, since I had some pretty crazy errors like that in my program.

 

Also, by child, do you mean that formB would have the same relationship to form c, as formA has to formB? Or do you mean that formC inherits formB?

 

Thanks,

Mike

Guest etron_neo
Posted

I have tested your code, but it doesn't work as i have planned. I have try another coding and it work as i plan, that is the coding :

 

Dim f As new formB

f.MDIParent=Me.parentform

f.show()

 

thank you for your reply. :)

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