TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
String to Color
Venkatesan Jayakantham
May 03, 2012
3.5
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
String to color in c#.
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
Next Recommended Reading
Color Selector from RGBA Color Model