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
Aaron Meza
NA
3
0
databinding labels to a public property
Nov 24 2008 10:39 PM
I am trying to get the backcolor of a label change based on the value of a public property in another class. All of the public properties I am working with are boolean values which essentially represent whether a switch is on or off. So I want the backcolor on the label to be green if true (on) or red if false (off). One way I thought of attacking this problem was to create a timer which calls the property get method and updates the text accordingly. But wouldn't databinding be a better way of approaching this? And if so, how do I bind the label.backcolor to a boolean value? I have never worked with databinding before, and I know it is generally used with databases, so I am not sure if this is possible. Any ideas?
Thanks,
AA MEZA
Reply
Answers (
0
)
Delete selected rows on datagrid (WINFORMS)
File upload control size