Removing the methods created by double clicking a control? (Visual Studio)

C# newbie here. just started my first project in Visual Studio since VS 1.0 (!).

I've double clicked on a couple of controls, eg labels, and VS has generated some extraneous methods, like:

 private void button2_Click(object sender, EventArgs e) { } 

The Form designer whines if I just delete them, so how do I get rid of them?

by Heinemenusch via /r/csharp

Leave a Reply