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.
I have a really serious problem with Visual studio 2010. I'm developping an ADDIN for Outlook 2010 and 2007. Since I wanted to test it in Outlook 2007, I removed Office 2010 and installed Office 2007. Since that I got this error when I launch the project : "
windows forms designer package did not load correctly