Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic Programming in Boo
Message
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Miscellaneous
Thread ID:
01471462
Message ID:
01471747
Views:
52
>That _is_ cool.
>
>The reason that the o,e are passed is that the def is of an unnamed function that is the eventhandler method. In C#, if you type in the line you did, the IDE (in VS2010) will complain that the function you named is not available. You then have to define that method.
>
>private void ButtonClick(object o, EventArgs e)
>{
>
>}
>
>in order to compile, of course. So that still looks like a lot of extra typing to me

If you type b.Click += (space)

then vs auto generates the method for you
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform