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.
 
Back
Top