+ 1

How to detect non click buttons in c #

My Windows form application has 50 buttons, how to check which buttons are not clicked by the user, show the list of non-clicked buttons, I want an optimized code in C#

29th Jul 2019, 10:30 AM
Arad Jan
Arad Jan - avatar
1 Respuesta
+ 2
I don't know what you exactly mean, but you should create a bool array. Every button switch the state of the correspondent element to true and set others to false. Based on this array, you can do every action you want.
1st Aug 2019, 10:24 AM
DonPietro Cavastano
DonPietro Cavastano - avatar