Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
2
Answers
C Sharp if statement concerning button color.
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
David
16y
1.8k
1
Reply
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;
}
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
Encrypt/decrypt file by using RSACryptoServiceProvider in C#
Leave Key and mouse move inside another program without selecting it.