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:
01471777
Views:
54
That's cool too. Thanks.

>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform