P
Perecli Manole
I am using "AddHandler Event, AddressOf Method" to register events but how
do I go about making the Event parameter be a variable. My user interface
shows a list of available events for a class, through remoting in a drop
down. The user selects an event from a list at which point I want to
dynamicaly bind that event to a known method.
Looking for something like this:
Dim e as Event = MyObject.Event 'user selects objct instance and event
through the UI
AddHandler e, AddressOf Method 'code I execute after user selection
Obviously the above syntax does not work.
Perry
do I go about making the Event parameter be a variable. My user interface
shows a list of available events for a class, through remoting in a drop
down. The user selects an event from a list at which point I want to
dynamicaly bind that event to a known method.
Looking for something like this:
Dim e as Event = MyObject.Event 'user selects objct instance and event
through the UI
AddHandler e, AddressOf Method 'code I execute after user selection
Obviously the above syntax does not work.
Perry