David

David

  • NA
  • 3
  • 0

C Sharp if statement concerning button color.

Mar 3 2008 3:21 PM
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;
                }



Answers (2)