July 16th, 2010, 12:19 PM
Accessing Form Label from Seperate Class
I am trying to update a labels text field from a class that is separate from the form class. I have created a UpdateStats class file to handle all the updating of stats, querying the database, etc. This class also runs as a background worker so it is on a separate thread from the form.
As the stat values are updated by UpdateStats I would like to update the label's text field in statsForm. I have implemented events/listeners to do this but I can not find a way to reference the label that I wish to update.
What is the best way to handle this?
Tags for this Thread
Click Here to Expand Forum to Full Width