c# - How do i remove an event from the code without manually deleting it? -


sometimes when accidently double click on events generates events event method , add , event handler in initializecomponent() of form.

so when want delete event, have delete code in 2 places, event method self , event handler in initializecomponent(). there away without deleting code manually?

if have have not edited event handler body, can simple remove event using vs designer. select events in properties window , remove handler don't need.

however, if have edited event handler (i.e. body contains code or comments). can still remove event using above step. cs file have manually delete method. helps refrain designer generated code (and possibility of messing up).


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -