You have a large wall of text that is hard to follow. I'm not sure if you're trying to get rid of the method you accidentally created when you double clicked the control in the designer, rename the method/component, or remove the component entirely from the form. So let's answer them all.
You cannot simply delete the method in the codebehind because when you go back to the designer it'll crash with the YSOD. To do it "properly":
- Go to the designer
- Select the control that is associated with the event
- Go to the Properties window
- Switch to the Events view (second group of buttons in the window's toolbar, lightning bolt)
- Find the event associated with the method and then delete the method name from the event
- If the method is empty and not used elsewhere then generally it'll get auto-deleted from the code
- If it is not auto-deleted nor used anywhere else (use the CodeLens reference count above the method name) then delete the method
If you are getting the YSOD then the error message at the top tells you want is wrong. On the right side is an option like "Go to Code" click that to jump into the designer.cs and fix the compiler error. Close the designer.cs file and the designer UI should refresh.
If you want to rename an event handler method, or really any identifier that might be in use, then symbolically rename it.
- Right click the identifer and select Rename
- Start typing the new name in the editor and the IDE will reflect the change
- Once done click the Apply button in the Rename dialog that popped up to symbolically rename the identifier everywhere it was being used.
To remove a component (or control) from the form entirely.
- Select the control in the designer and press Delete (or use the context menu)
- You will have to manually clean up any event handlers in the code behind that were associated with the component (again use CodeLens to see this)