Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VB AddHandler --> C# equiv.
Message
From
20/07/2004 21:44:22
 
 
To
20/07/2004 21:29:06
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00926398
Message ID:
00926407
Views:
10
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform