Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to trigger a click event from another form?

I need to run the code of a button that is on another form. is it possible to do it from a different form? if you say that it is possible by declaring it public then:

  1. how do i declare a control public?
  2. how do i pass the correct events into button_click? it takes two parameters - how do i pass them,?
like image 297
Alex Gordon Avatar asked Nov 05 '10 22:11

Alex Gordon


1 Answers

Why not create a public method in a shared class that both click events execute.

like image 192
Dustin Laine Avatar answered Oct 20 '22 22:10

Dustin Laine