2
Answers

C Sharp if statement concerning button color.

Ask a question
David

David

16y
1.8k
1
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)