Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting all possible events for a control in C#
Message
From
04/03/2009 10:02:08
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
 
 
To
04/03/2009 09:50:11
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 3.0
Miscellaneous
Thread ID:
01385323
Message ID:
01385472
Views:
29
>>>>>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/
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform