Visual Studio 2012 RC Ultimate, Windows 7 32bit, WinForms Application
Have been googling this all morning with no easy answer.
I placed a button on a form and double clicked the button to create the click event. After a while I realized I did not name the button. So I named it from "button2" to "btnShowTheResults" in the Properties panel.
So now the button has the new name property, but the event is still called "button2_Click".
How do I update all the events to they have the new Name property without corrupting the Form?
I believe that you would have to do this manually.
Why is common sense not common? Never argue with an idiot. They will drag you down to their level where they are an expert. Sometimes it takes a lot of work to be lazy Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
I am afraid (unless there's an Extension I don't know about) that the best way to do this is:
Immediately after you change the name of the Control: type control-h, and do a complete find-and-replace across the Project (or the entire Solution ?), changing the previous control name to the new name.
Or, you could manually change the name of the Click EventHandler, then go into the Properties Window / Event inspector for the Control, and wire-up the Click to the changed-name EventHandler.