0
How do I assign multiple buttons to an If-Statement
I'm currently working on a new project for beginners in c#. I've got a reset button, which resets all buttons pressed before, however I don't want my user to be able to press it until a specified amount of other buttons have been pressed. How do I do that?
4 odpowiedzi
0
Use a counter that count how many times the other buttons are pressed then when you reached some value, activate the reset button (i cannot help on code because i dont know C#)
0
disable the button until your condition is satisfied then enable it button1.enable = true
0
disable the button until your condition is satisfied then enable it button1.enable = true
The thing is, I don't know how to put the condition.
0
the thing is I am not familiar with c# but I can guide you.you can use the buttonclick event handler to check how many buttons have been pressed