Is there any way to invoke a button event from code?

In vb6 I could invoke a button event by just calling the button_click procedure.  Is there anyway to do that in vb2005

Thanks
Dick


Answer this question

Is there any way to invoke a button event from code?

  • Ashok Debnath

    You can still call the button_Click method, or call button.PerformClick. The latter will invoke all event handlers registered (in case there's more than one).

  • Is there any way to invoke a button event from code?