UI Option missing when adding new item.

Kurt Kregger 21 Reputation points
2022-11-09T04:52:30.623+00:00

I'm using the latest version of Visual Studio 2022 as of 11/8/22.
I created a winform app for visual c++ cli.
Desktop development with C++ and .NET desktop development workloads are installed.
I have no problem working with the main form, although Visual Studio 2022 is a bit flaky when it comes to displaying the form designer.
When I try to add another form by selecting Project->Add New Item... the UI option is missing.
So, it's impossible to add another form to the app.
My question then, is what do I have to do to make the UI option available?

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,811 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
316 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,481 questions
{count} votes

Accepted answer
  1. Minxin Yu 9,696 Reputation points Microsoft Vendor
    2022-11-10T01:34:30.753+00:00

    Hi, @Kurt Kregger

    Try installing C++/CLI in Visual Studio Installer. CppCLR_WinFormsProject looks like a user-defined project template.
    258890-image.png
    258906-image.png

    Best regards,

    Minxin Yu


    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. Kurt Kregger 21 Reputation points
    2022-11-09T16:56:57.73+00:00

    @ MinxinYu I did not have Project->Add New Item ->CLR option.
    @Viorel Selecting the project node doesn't seem to make any difference.


  2. Kurt Kregger 21 Reputation points
    2022-11-09T17:58:02.133+00:00

    258846-capture.png

    0 comments No comments

  3. Kurt Kregger 21 Reputation points
    2022-11-09T18:12:00.773+00:00

    I don't know if it makes a difference but, I'm using the community version of vs 2022.