First Visual Studio C sharp program - deleted form once and recreated new one with same name giving an error when rebuilding the application
Posted on 2008-06-20
I'm a newbie regarding C# sharp (VS 2008 C# express) so please forgive me. I was following some exercies in Chaper 2 of Beginning C# 3.0 An Introduction to Object Oriented Programming. I was trying to create a frmMain without any background coding. My first attempt the form came up with coding so I deleted it and tried to add another new form with the same frmMain.cs name. Now that I'm finished with adding labels and text boxes - I go to rebuild application I get an error - Error 1 'MailingLabel.frmMain.Dispose(bool)': no suitable method found to override C:\Users\Stephen LeCompte\Documents\Visual Studio 2008\Projects\MailingLabel\MailingLabel\frmMain.Designer.cs 14 33 MailingLabel
With the highlight on the following code at Dispose...
protected override void Dispose(bool disposing)
if (disposing && (components != null))
Can someone please tell me what's going on so I can prevent this from happening or how I may rebuild this application to test?