2
Answers

Random button color ?

Photo of GaLaZ

GaLaZ

16y
16.2k
1

Hi,

I've just begun with C# and I've encountered a problem...

I've got 25 buttons on my windows form, they all have black background... My objective is to randomly assign them one of 2 colors (black, white), when my application starts. How can I solve my problem? Could you help me?



Thanks,


Gregory

Answers (2)