Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
String to Color
WhatsApp
Venkatesan Jayakantham
12y
3.6
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
Up Next
Color Selector from RGBA Color Model
Ebook Download
View all
LINQ Quick Reference with C#
Read by 44.7k people
Download Now!
Learn
View all
Membership not found