There's gotta be a better way to shorten this. I'm trying to make a function where it detects when one of its child's ImageButtons have been clicked, and then identifies the button that was clicked. It is way easier than to make a new function for every single button. How should I do this? Is there a certain function or event to do so?
Thanks, hopefully I explained this correctly.

4 comments
Why not use a Generic-For instead of Numeric in this case?
numeric is slightly faster
Wow. The difference is so small it's not even worth it. Use generic loops.
it literally doesn't matter