Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Updating winform progress bar from a class
Message
De
27/01/2005 15:43:32
 
 
À
06/01/2005 16:27:58
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00974845
Message ID:
00981456
Vues:
56
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform