The Designer could not be shown for this file because none of the classes within it can be designed.

Trevor Daniels 31 Reputation points
2021-08-29T18:00:22.637+00:00

I have a project produced in Visual Studio 2017. I have just downloaded Visual Studio 2022 and tried to open the project. Although all of the code can be viewed, I can't see any of the Forms. I get:

"The Designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file: StartForm - the Base class 'System.Windows.Forms.Form' could not be loaded. Ensure that the assembly has been referenced and that all projects have been built."

Can someone please explain this and offer a solution?

Developer technologies | VB
{count} votes

6 answers

Sort by: Most helpful
  1. Julio Nobre 1 Reputation point
    2022-09-01T08:00:57.717+00:00

    As of today, using Microsoft Visual Studio Professional 2022 (64-bit) - Current - Version 17.3.3, C# Form Designer is unable to design previous forms.

    Fortunately, using Microsoft Visual Studio Professional 2019 (32 bit, i guess) - Version 16.9.4, C# Form Designer allows me to proceed my work.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.