Hello,
I have what I think should be a simple problem, but it is stumping me. I have a form that creates a class to do some work. I want the class to be able to update a status bar on the form.
So far the way I have it working is by passing a reference of the form to the constructor of the object created by the form and then updating the form by having the object call a delegate on the form to run the private update gui method on the form.
I'm sure this isn't the best way to be doing this, but I haven't found a way that makes sense to me. I read some of the multi-thread solutions here, but that seems like overkill for my problem.
Thanks,
Bill
I have what I think should be a simple problem, but it is stumping me. I have a form that creates a class to do some work. I want the class to be able to update a status bar on the form.
So far the way I have it working is by passing a reference of the form to the constructor of the object created by the form and then updating the form by having the object call a delegate on the form to run the private update gui method on the form.
I'm sure this isn't the best way to be doing this, but I haven't found a way that makes sense to me. I read some of the multi-thread solutions here, but that seems like overkill for my problem.
Thanks,
Bill