09-02-2012, 03:23 PM
Here is a helpful code snippit that I converted to C# from Brandon's post in the Java forum.
This method returns a color with random red, green, and blue values.
Pastebin: http://pastebin.com/PceciHEE
[code2=csharp]//This method returns a color with random red, green, and blue values
public Color getRandomColor()
{
Random random = new Random();
return Color.FromArgb(random.Next(256), random.Next(256), random.Next(256));
}[/code2]
This method returns a color with random red, green, and blue values.
Pastebin: http://pastebin.com/PceciHEE
[code2=csharp]//This method returns a color with random red, green, and blue values
public Color getRandomColor()
{
Random random = new Random();
return Color.FromArgb(random.Next(256), random.Next(256), random.Next(256));
}[/code2]
Eric Burnett
http://www.ericburnett.net/
http://www.ericburnett.net/