Call Sub on Parent form from Child Form

  • Thread starter Thread starter Guest
  • Start date Start date
Hi Brian

I am not convinced that the example you give is necessarily a good one. In
your code you have created a circular dependency: Form1 depends on
ChildForm2 and ChildForm2 depends on Form1. This kind of dependency is
normally to be avoided.

You might consider raising an event in ChildForm2, which Form1 handles.
Form1 can then control the call to UpdateDealData().

Just a thought.

Charles
 
Thanks, you are right, i guess i didn't see that as an issue with what i was
doing.
 
could you point me to an example?

Charles Law said:
Hi Brian

I am not convinced that the example you give is necessarily a good one. In
your code you have created a circular dependency: Form1 depends on
ChildForm2 and ChildForm2 depends on Form1. This kind of dependency is
normally to be avoided.

You might consider raising an event in ChildForm2, which Form1 handles.
Form1 can then control the call to UpdateDealData().

Just a thought.

Charles
 

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