C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
String to Color
WhatsApp
Venkatesan Jayakantham
13y
3.7
k
0
0
25
Blog
Here is the C# code for dynamically assigning the color value for the control
string colorval="Red";
Color color = Color.FromName(colorval);
button1.BackColor = color;
Cheers,
Venkatesan Prabu .J
Head, KaaShiv InfoTech.
http://www.kaashivinfotech.com/
String to Color
People also reading
Membership not found