Call the Event handler of the Button Click

  • Thread starter Thread starter Edward
  • Start date Start date
E

Edward

Hi,

Does anyone know how to get the name of the EventHandler
for an event of a control and to invoke it thru code.

eg: I have a Button 1 on a Form, depending on some
condition I attach the Event Hander for the Click Event at
runtime using "AddHandler". the Event Handler could be
different in some other condition.

On click of Button2, I want to invoke the attached event
handler of Button 1 Click.

Thanx
Edward
 
Can't you keep track of it internally in your app?

This posting is provided "AS IS" with no warranties, and confers no rights.
 

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