What does this mean? There is no line or column where I can find the error and I can't see my design.
I've searched the code for questionmarks (?) but I don't find any.
Also I'm creating a lottery program for an assignment in my C#.NET class.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
VulpesRank #55 · 29.2K reputationPosted Feb 6, 2014, 2:07 AM EST
You might be able to get rid of it by simply closing the designer window (or the whole solution) and then reopening it.
Otherwise, I'd check out this thread:
http://social.msdn.microsoft.com/Forums/windows/en-US/f2c1a027-3e49-4f7f-a4c2-c91a8fde25fc/the-class-name-is-not-a-valid-identifier-for-this-language?forum=winformsdesigner
Amanda5 reputationPosted Feb 6, 2014, 4:57 AM EST
And I was looking at your link and tried to open the link that was suggested there, it didn't work. Is there really no way to fix it without re-writing the whole code?
VulpesRank #55 · 29.2K reputationPosted Feb 6, 2014, 6:45 AM EST
You won't necessarily need to rewrite the code. You might be able to just copy the .cs files (apart from the one you were working on when this problem occurred) across to the new project.
I found where this bug was reported on Microsoft Connect and the person who reported it did something like this to preserve as much of the original work as possible:
http://connect.microsoft.com/VisualStudio/feedback/details/497218/the-class-name-is-not-a-valid-identifier-for-this-language-can-reproduce-w-vs-2008
Amanda5 reputationPosted Feb 10, 2014, 12:29 AM EST