✅ Winforms Forms converted to just c# classes
I updated visual studio this week to the latest version, and now in my winforms project all my forms are just c# classes. I don't know how to get to the UI designer.
27 Replies
can u show the content of one of those cs files
Yes. It seems to have all the form components like before
But when I double-click it, it just opens the cs file
I had this issue like a week ago but I don't remember how I fixed it tbh
I know how to fix it but I need to see one of those files to confirm my suspicious
usually that happens when you add classes and stuff before the form class
One of the cs files?
it was purely a VS issue in my case
yes for example the content of ChapterForm.cs
Yeah, has to be a VS issue. This was working just before I updated.
well its not recognizing Form in your code for some reason
Yeah, totally weird
can u post your csproj?
Yeah
yeah so what I Have seen before it people add say a class before the : Form line and it break the designer
which is not your case
whoa
It just fixed by itself
lol could have been just $vsdrunk
* close VS
* remove the hidden folder
.vs
* remove all bin
and obj
folder next to each csproj (DO NOT TOUCH THE .git
FOLDER OR WHAT'S INSIDE)
* restart vsI hit the enter key in the class, and then they all returned to the normal form icon lol
where did u hit enter
Just added a new line after the namespace
And then, poof. It's working now. lol
mmm I wonder if for some funky reason the lack of space there was making it confuse
Dunno, it fixed it for all my other files too. Must've just been a hiccup.
Thank you for the help! 🙂
hey we didnt do anything
all on you 😉
$close
If you have no further questions, please use /close to mark the forum thread as answered
yeah it was something like that in my case too
i don't remember what it was exactly though
but removing .vs didn't help either
or git clean -fdx to be exact