2
Answers

Getting a button click without knowing the button

Photo of patrick

patrick

16y
2.7k
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)

Next Recommended Forum