Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleting an event and updating in initializecomponent
Message
From
24/01/2005 17:10:30
 
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00980208
Message ID:
00980212
Views:
43
Zakaria,

You can remove the delegate for the event from the Property Sheet (just go the Events in the Property sheet, find the Event and delete the EventHandler). This doesn't remove the EventHandler, only the delegate to it. You still have to remove the EventHandler method in the code itself. (But, if you forget and leave it in there, the Form still will run, it just won't execute the EventHandler when the Event fires).

~~Bonnie


>Hello all,
>
>When I delete an event for a certain control and running afterwards the form I get an error in the form's InitializeComponent that there is no definition for that certain event. After deleting this event in InitializeComponent the error goes away.
>
>I find it irritating to delete almost the same thing twice. Is there a setup in c# to do this automatically?
>
>Zakaria al Azhar
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Reply
Map
View

Click here to load this message in the networking platform