Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamic Programming in Boo
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Divers
Thread ID:
01471462
Message ID:
01471777
Vues:
56
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform