Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I get a child to speak to its parent

Status
Not open for further replies.

inexperienced1

IS-IT--Management
Aug 9, 2002
49
US
I have some source which will be built into an exe and to this I am looking to add a dll.

That the easy bit. The source can change but the dll should not, however some of the dll need to be configurable.

What I would like is for the configurable bit to reside in the source (ie the future exe).

I am not sure if this is possible, anyone any ideas?
 
Hi:

Here is a technique that I use, to permit the child to be able to speak with the parent.

In the child:
Code:
Public myMom as Form

    . . .
Private Sub SomeCode()
    . . .
    Call myMom.DoSomething
    . . . 
End Sub

In the parent form:
Code:
Private myChild as clsMyChildClass

    . . .

    Set myChild = New clsMyChildClass
    Set myChild.myMom = Me

    . . .

Private Sub Form_Unload()
    Set myChild = Nothing
End Sub

HTH,
Cassandra
 
Many thanks,
Not quite what I need, as I need to communication the other way around, but it did get the grey cells working and a solution has been found.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top