parent function call , when i don't know who the parent is

  • Thread starter Thread starter Sidorf
  • Start date Start date
S

Sidorf

Hi there

I've build a dynamic toolbar, based on xml. this toolbarClass will be
instantiated in some aplication, i don't know for sure how many, for
the moment.
i'm looking for a way to call a function (function1 for example), from
the parent application, without having the reference to that
application. i'll know for that a function with that name exists in the
parent application.

thanks
 
Sidorf said:
Hi there

I've build a dynamic toolbar, based on xml. this toolbarClass will be
instantiated in some aplication, i don't know for sure how many, for
the moment.
i'm looking for a way to call a function (function1 for example), from
the parent application, without having the reference to that
application. i'll know for that a function with that name exists in the
parent application.

Learn about
-Delegates
-Events
-Interfaces

Each can solve this problem.

David
 
thanks david
i've done some work with events , but one problem still remains: how to
call a function if i have the functionname as string.

thanks
 
Back
Top