VB.NET: Can I rewire button events to handle several different button clicks through one click event
Posted on 2010-09-21
I have a form with 5 buttons that simply click through a datatable. The buttons are FIRST, LAST, PREVIOUS, NEXT and NEW. For the sake of discussion lets say the buttons are named btnFIRST, btnLAST, etc...
Instead of coding through 5 separate button events to call one subroutine (and pass the button object to the subroutine), is there a way that I can do an AddHandler or something to allow the one added event to handle the clicks of any and all buttons?