2
Answers

Getting a button click without knowing the button

Ask a question
patrick

patrick

15y
2.4k
1
I have 22 buttons, and i want all of them to run the same method, which will:
1.Get the name of the button that was hit.
2.Perform a task based on which button was hit.(probably a switch statement). Is there and easier/ faster way to set the click methods without setting all 22 buttons?

is there at least a way to find the button that was clicked?

Answers (2)