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