Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VB AddHandler --> C# equiv.
Message
De
20/07/2004 21:44:22
 
 
À
20/07/2004 21:29:06
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00926398
Message ID:
00926407
Vues:
9
Bonnie,

There are probably still more questions to come :)

I'm going down that trail right now, and I'll know in a few minutes whether it works or not. You've pointed out an adjustment I need to make in my attempt.

Thanks,
steve



>You sure have a lot of questions today. <g>
>
>I think that the AddHandler thing in VB.NET, is what we use delegates for in C#. So, you'd have the delegate:
>
>o.Validating += new CancelEventHandler(this.ValidatingHandler)
>
>And then the EventHandler:
>
>private void ValidatingHandler(object sender, CancelEventArgs e)
>{
>    // code in here
>}
>
>To remove the delegate you'd use -= instead of +=.
>
>Does this help?
>
Steve Gibson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform