I am not sure how to handle compile time errors that occur when a method has been removed or commented out.
For instance, I deleted a ToolStripMenuItem that has a method associated with it. When I recompile I get the following error:
"MyProg.Form1' does not contain a definition for 'printPreviewBOMToolStripM
enuItem_Cl
ick".
The problem code is located in Form1.Designer.cs
this.printPreviewBOMToolSt
ripMenuIte
m.Name = "printPreviewBOMToolStripM
enuItem";
this.printPreviewBOMToolSt
ripMenuIte
m.Size = new System.Drawing.Size(217, 22);
this.printPreviewBOMToolSt
ripMenuIte
m.Text = "Print BOM";
this.printPreviewBOMToolSt
ripMenuIte
m.Click += new System.EventHandler(this.p
rintPrevie
wBOMToolSt
ripMenuIte
m_Click);
Should I comment out the offending code in Form1.Designer.cs? Or would something like Refactor be the way to handle this?
Start Free Trial