lunchbox88
Programmer
C#
I have a form with 2 textboxes. I want to add a button by each text box to count the characters. I can do this the really easy way by creating 2 buttons, and coding an OnClick for each button. I'd rather check to see which button is clicked, and count the characters in the appropriate textbox.
How can I get the ID of the button that was clicked?
Thanks!
I have a form with 2 textboxes. I want to add a button by each text box to count the characters. I can do this the really easy way by creating 2 buttons, and coding an OnClick for each button. I'd rather check to see which button is clicked, and count the characters in the appropriate textbox.
How can I get the ID of the button that was clicked?
Thanks!