Visual Studio 2019 can't add a windows form to a c# project

Luke Barkess 21 Reputation points
2021-09-06T21:46:48.287+00:00

I click add then new item and search for windows form to add to a c# project but nothing shows up and I have reinstalled visual studio and made sure .NET desktop development is installed and it all is yet it just won't show up. I heard it could be a thing to do with OneDrive but have changed my template location to my C drive visual studio templates instead of inside documents but nothing appears in the new item. However when i go to create a new project and can create a windows forms app but cant add a windows Forms item in an already existing project. Just wondering if there is any fix as it's quite annoying and don't know a way around it. Any help would be much appreciated, thanks.

Developer technologies | Windows Forms
Developer technologies | Visual Studio | Other
0 comments No comments
{count} votes

Accepted answer
  1. PengGe-MSFT 3,381 Reputation points
    2021-09-07T07:17:12.347+00:00

    Hi @Luke Barkess

    Welcome to Microsoft Q&A!

    I cannot reproduce your issue on my side.

    You can try to create a new solution, and then check whether you can add an MFC project.

    By the way, what is the type of your existing project?

    Sincerely,
    Peng
    *
    If the answer is helpful, please click "Accept Answer" and upvote it.
    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

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Lex Li 6,037 Reputation points Microsoft Employee
    2021-09-07T02:27:19.58+00:00

    What kind of project did you create exactly? WinForms cannot be added to any project, as it's Windows only.

    1 person found this answer helpful.
    0 comments No comments

Your answer

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