Link to home
Start Free TrialLog in
Avatar of brettr
brettr

asked on

How to fix broken winform designer?

In VS.NET 2008 (.NET 3.5), someone renamed a button in the designer auto gen'd code.  Everything builds and works fine except the designer.  When you open the designer in vs.net, if gives an error:

The type 'System.Windows.Forms.UserControl' has no property named 'TheNewButtonName'.

If I name the button back to the old name, it still gives the error.  Is there a way to fix this?
ASKER CERTIFIED SOLUTION
Avatar of Anurag Thakur
Anurag Thakur
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of angus_young_acdc
Have you tried doing a Clean on the solution?  I normally find that works.
Avatar of brettr
brettr

ASKER

I had delete the button in question.  The designer came back.  Then I added a new button and set the property.  I don't see how the above solutions apply.  Unless someone says otherwise, I'm going to close the question.
From what I can see that was ragi0017's suggestion about removing the button.