C
C#5mo ago
PANZER234425

WinForms error after inserting a picture

Hello, I inserted a picture on a button and realized that its way too big scaled, so I deleted and and insertet a new picture with another name. Then I restarted VS22 and get an fatal error saying I cant open the designer. If I put a File with the name of the old file it works fine. I already deleted the button in the designer and everything related in the code, but I cant fix it
3 Replies
FestivalDelGelato
and i guess your project is not under source control, right? did you change the designer file too? even if you can't open the ui it should give you a sufficiently descriptive error in vs you could try also executing dotnet build in the root of the project also
PANZER234425
PANZER234425OP5mo ago
I found The Error, even though I deleted The Files from the src folder, The Designer File didnt Changed, Like you Said. Thanks Im new to Windows Forms, what is source Control?
FestivalDelGelato
versioning of code, for example having a local git repository

Did you find this page helpful?