MDIParent or ParentForm not working in MDIChild

  • Thread starter Thread starter Daniel Mantilla
  • Start date Start date
D

Daniel Mantilla

I am creating child forms using this standard code:
Dim newDoc As New frmAnswer
newDoc.MdiParent = Me

newDoc.Show()

Inside the child form I need to know who the parent is, but MDIParent and
ParentForm are Nothing. Why is that? Even the IsMDIChild property is False.
What am I doing wrong?

Thanks in advance.

Daniel
 
* "Daniel Mantilla said:
I am creating child forms using this standard code:
Dim newDoc As New frmAnswer
newDoc.MdiParent = Me

newDoc.Show()

Inside the child form I need to know who the parent is, but MDIParent and
ParentForm are Nothing. Why is that? Even the IsMDIChild property is False.
What am I doing wrong?

'Me.MdiParent' inside the MDI Child form isn't nothing after assigning
an MDI parent form. Are you sure you are checking the property's value
/after/ assigning the parent form?
 
Yes, you are right. I was checking for the value in the wrong place !! I
don't know what's happening with me ...

Thanks for your time.

Daniel



*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top