.NET newbie alert
Using Visual C# 2008 Express Edition I have accidentally created a click event for a button. I then deleted the automatically-created met
You do have to be careful when working in the designer.cs files but you don't have to feel dirty about it (when I make the same mistake it is just easier to fix it the designer.cs file). You can do it visually like this:
Okay, I am usually the one advocating the use of notepad2 or some other text editor to perform coding tasks.
But, since you ask how to do so in the Designer...
The only caveat being: if you wish to preserve your event handler method (i.e. it is not auto-generated by Visual Studio) - you probably want to avoid deleting the assignment in this manner. Because when I say that it removes the event handler - I should say that the declaration of the event handler method in "Form1.cs" (for example) will be deleted as well.