M
Marinos Christoforou
I have a VB.NET Windows Forms application. The main form calls a worker
class to do some work. Currently I implement this call syncronously and
would like to show the progress via a progress bar as this work is being
carried out. What is the recommended method of doing this?
One way I thought was to write a public method say "ShowProgress" in the
main form's class. However I am not sure how the worker class would call
this method given that there is no explicit instance of the main form, but
rather it is initiated as a type parameter to the Application.Run method.
Thanks in advance.
class to do some work. Currently I implement this call syncronously and
would like to show the progress via a progress bar as this work is being
carried out. What is the recommended method of doing this?
One way I thought was to write a public method say "ShowProgress" in the
main form's class. However I am not sure how the worker class would call
this method given that there is no explicit instance of the main form, but
rather it is initiated as a type parameter to the Application.Run method.
Thanks in advance.