Hi @Gyumin Kang ,
Welcome to Microsoft Q&A!
I couldn’t reproduce your issue in Visual Studio Professional 2022 version 17.11.5. But I found the similar issue:
Adding resource for C++ application crashes Visual Studio - Developer Community
It may be a Windows issue. You can refer to Quin Tosch’s suggestion to manually create the following key and value:
Path: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer\Main
Name: JScriptReplacement
Type: REG_DWORD
Value: 0
Then, reboot the computer and add the Windows Forms UI again.
Sincerely,
Anna
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.