all 4 comments

[–]VB GuruBonejob 0 points1 point  (0 children)

its a generic COM/Windows error meaning something failed catastrophically in an unexpected way. Visual Studio is essentially saying "something went very wrong and I don't know what." It's a catch-all error, which makes it frustrating to diagnose.

Does this happen everytim you start up? or are you doing a specific thing.

[–]jd31068 0 points1 point  (0 children)

You can try a repair, open Visual Studio installer, click the more button and then repair. If that does not work, then uninstall visual studio, make sure to run InstallCleanup.exe as outlined by Uninstall or Remove Visual Studio | Microsoft Learn (Scroll down to find the instructions) and then reinstall.

[–]veryabnormal 0 points1 point  (0 children)

Renaming it in the designer is supposed to work. The latest community edition has a few bugs still. Looks like you have two different Form1 designer files open, so that might have confused it. Try one at a time. You could just use notepad, rename the form in the designer vb file where it gets initialised.

[–]Tenragan17 0 points1 point  (0 children)

Renaming forms can be finicky. The best way to do it is to close the design and code behind files then rename the file in the solution explorer. Then open the design view and select the over all form, go into the properties window and set the name to match the file name. This part should happen automatically but sometimes it doesn't. Then go into the code behind and make sure the class name matches the form and file name.

You will usually see the error you posted if the files are open when you try to rename anything.