HELP PLEASE: Me.MDIParent returns what?

  • Thread starter Thread starter Dursun
  • Start date Start date
D

Dursun

I need to call a subroutine (CreateNewDoc()) in FormA from
within FormB based on the user action in FormB.
Let FormA be an MDIForm and let FormB be its MDIChild
form (during the creation of FormB, MDIParent property was
populated properly). So, the FormB.MDIParent (or from
within FormB, "me.MDIParent") will (should?) return an
object refernce to the FormA instance (I am not sure if
this is a correct assumption... please read along). At
this point I should see the Public subroutine CreateNewDoc
I defined in FormA to show-up via intellisense from
within FormB. It does not show-up! Am I missing someting
here? Is there any gurus out there who can give me some
pointers as to how to deal with the situation?

Thank you very much in advance.

Dursun
 
* "Dursun said:
I need to call a subroutine (CreateNewDoc()) in FormA from
within FormB based on the user action in FormB.
Let FormA be an MDIForm and let FormB be its MDIChild
form (during the creation of FormB, MDIParent property was
populated properly). So, the FormB.MDIParent (or from
within FormB, "me.MDIParent") will (should?) return an
object refernce to the FormA instance (I am not sure if
this is a correct assumption... please read along). At
this point I should see the Public subroutine CreateNewDoc

You will have to do a cast to see the methods:

\\\
DirectCast(Me.MdiParent, MainForm).MyMethod()
///
 
Back
Top