Horje
c# random color Code Example
c# random color
Random r = new Random();
BackColor = Color.FromArgb(r.Next(0, 256), r.Next(0, 256), 0);
c# random color

public partial class Form1 : Form
{
    private Random rnd = new Random();

    public Form1()
    {
        InitializeComponent();
    }

    private void button1_Click(object sender, EventArgs e)
    {  
        Color randomColor = Color.FromArgb(rnd.Next(256), rnd.Next(256), rnd.Next(256));

        BackColor = randomColor;
    }
}





Csharp

Related
get enum int by name Code Example get enum int by name Code Example
how to access gameobject name Code Example how to access gameobject name Code Example
get max enum value c# Code Example get max enum value c# Code Example
difference between alpha and beta testing Code Example difference between alpha and beta testing Code Example
left moust click unity Code Example left moust click unity Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9