Calling one event from another event


Hello all,

I Wish to call Button1_click event of Form1 in Button2_Click event of Form2.

i.e Calling event of one form into evnet of other form.

How can I achieve this?



try this Form1.Button1.PerformClick(). Put this in the click event of the button on form 2.


oops almost forgot. the form might have to be showing first. A better solution might be to put the code in a public sub and let each button call it.

As usual don't forget to mark solved problems solved :)


@tnstaafl: hey, thanks that really works.....

so how do i mark your answer as solved ???
Am kinda new in here !!
:P :P

Question Answered as of 2 Years Ago by tinstaafl
This question has already been solved: Start a new discussion instead
Start New Discussion
Tags Related to this Article