setting property on a form from a class
Posted on 2004-04-29
I've searched the archive here, but stil am a little confused. I uderstand the concept of OO to some degree, but isn't "text" a property of a label? I have a form that is currently open and active. I drop into a class to do some work, but want to update the status of the work in a label on the form. Shouldn't I just be able to set the property of label.text on the form to what I want without all that other code? It looks like a lot of work to simply set a property.
In short, my question is how to set the text property of a label on an active form with a value, from within another class, without 25 lines of code. For the purists of you out there, I realize the old method may not have been true OO, but darn if it wasn't simple.