General information
Category:
Visual FoxPro and .NET
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only