how to get the eventhandler list from an event?

I

i676373

Hi,

I have a instance of Button, button1. button1.Click event is already
associated with some unknown event handler, e.g.

=======
button1.Click += new EventHandler(btn_click1);
button1.Click += new EventHandler(btn_click2);

How can I know the the list of eventhandler which is associated with
the event button1.Click, programmatically?

regards & thanks,
john
 
L

Larry Lard

Hi,

I have a instance of Button, button1. button1.Click event is already
associated with some unknown event handler, e.g.

=======
button1.Click += new EventHandler(btn_click1);
button1.Click += new EventHandler(btn_click2);

How can I know the the list of eventhandler which is associated with
the event button1.Click, programmatically?

You don't. That information is private to button1. See also

<http://groups.google.com/group/micr...nguages.vb/browse_frm/thread/21585f18a4cb8aa4>
=
<http://tinyurl.com/pnyye>
 
S

Stoitcho Goutsev \(100\)

Only the button1 object can get the list of event handlers. Even button1 may
not be able to get this info if it inherits this event form a base class at
the base keeps the delegate field for the event private.
 

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

Top