Click here to Skip to main content
15,896,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to get Random Color Values in winforms(C#.net). i Want Color code values up to 300 values.. how can i get?
Posted

 
Share this answer
 
I am assuming you are aware of generating random numbers and about RGB color values.

Color.FromArgb[^] method allows you to create colors by specifying RGB color values. Please, read upon the third and the fourth overload of that method in the above link. By generating random numbers from 1 to 255 for each of these fields, you can create random colors more than a million or so.

Hope this helps :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900