Generally the best method of doing this would be for the class to raise some
sort of event or callback. So instead of the class having specific knowledge
of the form (eg, having the line MyForm.Label1.Text = "50% complete") it
would raise an event and the form would set the label caption. This might
seem like a minor difference but it makes the class more independant of the
form and the class could be called from several different forms, or maybe
one day from a webpage or PDA or even a console app.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.