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
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Craig Kasold
NA
6
41.5k
Change the foreColor of a textbox
Feb 11 2009 9:04 AM
I am trying to do something that I believe should be very simple. I am trying to change the forecolor of a textbox depending on what is in the text box. Meaning if the text box has a value of 'UP', I want the forecolor to be RED. If the text box has a value of 'DOWN', I want the forecolor to be BLUE. I am use to programming in SQL (Oracle) over 10 years ago and I would simply state something like: if the textbox.text = "UP" then textbox.forecolor = color.red; ELSIF textbox.text = "DOWN" then textbox.forecolor = color.blue; ELSE textbox.forecolor = color.black;
How does one do it in Visual C#?
Can anyone Help?
Reply
Answers (
4
)
Displaying list of tables in Oracle DB in comboBox
Combo box help!!