visual studio 2022 error adding WPF usercontrol

wonmin han 40 Reputation points
2023-04-27T01:59:44.71+00:00

As in the attached video below, if I just add a user control to the toolbox, it will forcefully close. Is there a way to fix it?

Visual studio 2022 is up to date.

Thank you for watching the video below.

https://www.youtube.com/watch?v=NxXfbJcXQlQ

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,097 questions
0 comments No comments
{count} votes

Accepted answer
  1. Tianyu Sun-MSFT 30,561 Reputation points Microsoft Vendor
    2023-04-27T06:32:40.68+00:00

    Hello @wonmin han ,

    Welcome to Microsoft Q&A forum.

    Please first try to reset Toolbox(right-click in Toolbox > Reset Toolbox) and check again.

    Also, try to remove the control and then readd it to the Toolbox. Run devenv /ResetSettings in Developer Command Prompt for Visual Studio 2022 to reset VS settings and repair VS from VS Installer > More > Repair.

    If this issue persists, could you please share the detailed steps about how you added a user control to the Toolbox with us to reproduce this issue and check further?

    Besides, did "Choose Toolbox Items" window show WPF Components correctly before you added the user control to the Toolbox?

    Best Regards,

    Tianyu


    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

0 additional answers

Sort by: Most helpful

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.