user control - public property
Posted on 2014-02-20
Been away from Windows Form Controls dev for a while.
I have a control that displays the date and time in a label.
I want to create a property that is visible in the visual studio "Properties" window, such that I can grab the current contents of the label any time I want to.
I think attributes are used, but I don't remember how to do it.
Thanks, and please include small 'hello world" sample C# code for me.