C Sharp if statement concerning button color.
What is the proper syntax to perform and if statement concerning a buttons color.
Sample code that is non-working:
if (this.btnChat1.BackColor="Color.Salmon")
{
this.btnChat1.BackColor = Color.DarkBlue;
}
else
{
this.btnChat1.BackColor = Color.Salmon;
}