For the beginning I would like to say that this question doesn't require full attention.
Is great if someone answer, if not, <<c'est la vie>>.
Let me start present the situation.
When working with C# form I need to create different controls for different tasks.
If I double click on a control, an automated generated code appears.
This is quite good but sometimes I double click by accident. And doing so it reveals an annoying situation in which I have lot of events with no line of code.
I think that in Microsoft Access, when you compile the code, all the events with no line of code, automatically disappear.
And my question is: is it possible to do so in C#?