Visual Studio 2020 - why can't I add second Windows Form to my Windows From project?

John Jarvinen 21 Reputation points

Using this as a guideline ( I attempted to add a new form to my windows form project but am having some difficulty.

First I click on 'Add Windows Form:

but when I click on 'Windows Form' I get the message "no items found for search term". Any advice here? Thanks.

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,870 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,849 questions
0 comments No comments
{count} votes

Accepted answer
  1. Tianyu Sun-MSFT 29,186 Reputation points Microsoft Vendor

    Hi @John Jarvinen ,

    Welcome to Microsoft Q&A forum.

    Please first check if the form.cs item template is stored in C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\ItemTemplates\CSharp\Windows Forms\1033\Form. And then try to repair VS from VS Installer > More > Repair.

    Not sure if some files were corrupted when you were installing VS 2022. If repairing VS doesn’t work, I suggest you try to reinstall VS 2022.

    Best Regards,

    • If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. John Jarvinen 21 Reputation points

    Some additional info:

    Microsoft Visual Studio Community 2022 (64-bit) - Current Version
    Version 17.1.6

    I'm able to load old projects with multiple Forms, and create new projects with one Form.
    No special addons, libraries, etc.

    Just can't find a way to get 'Add Form' to work to a current project.

    0 comments No comments

  2. John Jarvinen 21 Reputation points

    I was able to create my own Form programatically: Form prompt = new Form();

    That leads to a couple of questions:

    1. Why can't I use 'Add Form' to add a Form to my existing project?
    2. Is there a way to create a designer view for the form I create at run time? Doesn't seem likely, does it, as it only exists after I run the program.
    0 comments No comments

  3. John Jarvinen 21 Reputation points

    Thank you for your help.

    The repair did not work. However, I completely uninstalled Visual Studio 2022 and reinstalled it, selecting only ".net desktop development". In previous installs, I had selected other options (such as Python, ASP, etc); don't really know if that had any effect.

    But the new install (v17.1.6) now gives me the option to Add Form.

    Again... thanks for your help.

    0 comments No comments