Editing the designer generated code in InitializeComponent() is a good way to blow your foot off. It is easy to get the code into a state where it throws an exception when the designer runs the form constructor, producing a WSOD, the White Screen Of Darn. Or crash Visual Studio to the desktop.
Change the name of a control by editing the Name property in the Properties window. Remove an event handler by clicking the lightning bolt icon and deleting the name of the event handler. But yes, deleting that line of code would do the same thing as deleting the event handler in the Properties window.
|