click event
-
Suppose i have two buttons btn1 and btn2 and i have created a click event function of btn1. now if i want to call btn1 click event function when user click btn2 please tell me soon
btn1.PerformClick Steve
-
Suppose i have two buttons btn1 and btn2 and i have created a click event function of btn1. now if i want to call btn1 click event function when user click btn2 please tell me soon
Another method is to have the same event handler handle the Click event of both buttons. Look at the end of the event handler declaration for one of the buttons Click events and you'll find a Handles clause:
Private Sub Button1\_Click(_blah, blah_) Handles Button1.Click
You can have a single handler handle the Click events of more than one button by doing this:
Private Sub MyClickHandler(_blah, blah_) **Handles Button1.Click, Button2.Click**
Dave Kreskowiak Microsoft MVP - Visual Basic
-
Suppose i have two buttons btn1 and btn2 and i have created a click event function of btn1. now if i want to call btn1 click event function when user click btn2 please tell me soon