Help with color and buttons?

May 13 2015 8:17 AM
hi, i was wondering if anyone could help me? i am trying to have a button once clicked to display a colour, i have managed to this with the code,

private void button1_Click(object sender, EventArgs e)

{        button1.BackColor = Color.Green; }


i want to know now that the button is green from the first click am i able to create an if statement to detect whether the button is green then to continue to the next method if it is?

many thanks in advance :)

Answers (2)