>Hi I am able to update a winforms progress bar from a method in a class if
>i pass it a ref to the progress bar however I remember seeing an article about using "delagate"? to accomlish the same thing.
>
>Anyways just wondering if anybody can point me in the right direction.
>
>Thanks
>
>Paul
Basically your class would have an event that is raises. Your form would subscribe to that event.
You would could create an event arg class to pass the progress info from the class to the event handler in the form. You could use the default event arg here and just pass percentdone or such.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csref/html/vcwlkEventsTutorial.aspBOb