Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting all possible events for a control in C#
Message
De
04/03/2009 10:02:08
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
 
À
04/03/2009 09:50:11
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 3.0
Divers
Thread ID:
01385323
Message ID:
01385472
Vues:
31
>>>>>In the code window in VB I was able to use the left handed drop down to view all the controls on my form, and the right handed drop down to select an event for that control. This would create a method signature. Why doesn't C# do this? Is there an alternative?
>>>>
>>>>Select the control, go to Properties window, Methods, double click on the method there (from memory).
>>>
>>>Yes, that was it. To make it more clear for anybody in the future, there is an Events button in the toolbar of the Properties window.
>>
>>Yes, that's what I meant. Thanks.
>
>This seems to work for all controls but my webform. I can't find a way to view all the possible events for my form.

Furthermore, if I add an event for a control in ASP.NET, and then remove the event hander in code, I also have to go to the markup of the page and remove the event attribute from the control manually. I didn't have to do this in VB. Is this a C# thing?
Very fitting: http://xkcd.com/386/
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform