Click here to Skip to main content
15,891,708 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I've a particular class which has a property called Status, which can either have two string values at one time - "active" or "inactive"; not both. I am trying to have a label control text property reflect this value. So how do we do this?

Posted
Updated 1-Dec-09 5:06am
v2

1 solution

You can use a delegate to fire when the status is changed, to set the value. You can't do automatic binding to a control, so that the data source changes, not in winforms.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900