Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Updating winform progress bar from a class
Message
From
27/01/2005 15:43:32
 
 
To
06/01/2005 16:27:58
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00974845
Message ID:
00981456
Views:
55
>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.asp

BOb
Previous
Reply
Map
View

Click here to load this message in the networking platform