Answer the question
In order to leave comments, you need to log in
How to designate all Buttons with one word?
Good evening forum users! When creating a game of tic-tac-toe, a problem arose - How to designate all Buttons with one word (Initialize with one word?), To write one general condition for all buttons?
Answer the question
In order to leave comments, you need to log in
It seems to me that you just need to assign one eventhandler to all buttons. On there, using the condition, check the Id or Name of the button, and depending on this or that button, do a certain action.
It’s not easier to put them in a container and walk through it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question