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.User Control' 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?
The type 'System.Windows.Forms.User
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Have you tried doing a Clean on the solution? I normally find that works.
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.