Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Saturday, September 28, 2019 6:42 PM
In VS 2019, when I right click on the project and then pick Windows Form, it gives me a list of choices starting with Class, but Windows Forms is not there. My work around has been to go back to VS 2017 and open the form there and then proceed to program it under 2019. How do I get Windows Form back in 2019?
All replies (7)
Monday, September 30, 2019 1:53 AM ✅Answered
Hi jjobcorp,
Thanks for your feedback.
> >l advise that you should first check whether you can create a Windows Form application in VS2019.
If not, perhaps you have missed the related workload in vs installer. Please follow these steps:
1. Now both VS2017 and VS2019 are installed through it, so it exists on your computer.
>>Enter installer in your OS search box or look for it in Programs and Features in Control Panel.
2. choose your VS2019 and then click Modify
3.then check if you have installed .NET Desktop development workload and when you have installed this workload, you can create a Windows Form application and add a Form in a existed WinForm project.
Any feedback will be expected.
Best Regards,
Perry
MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected]
Monday, September 30, 2019 1:47 PM ✅Answered
I could not find VS installer, but I right clicked on VS2019 and clicked on change and the box .NET Desktop Development was not checked. This fixed it. Thank you very much
Saturday, September 28, 2019 9:52 PM
Have you looked at the VS Installer? Are you sure you have everything installed that is needed? If you have everything installed then possibly you need to do a fix of the install or a re-installation. I am not sure what and hopefully someone can advise you better but those are thing you can look at an maybe try before anything better is posted.
Sam Hobbs
SimpleSamples.Info
Sunday, September 29, 2019 10:26 AM
Hi jjobcorp,
Welcome to the MSDN forum.
Did you install the .NET Desktop development workload on the VS2019 installer? What is your project type? Did you create a WinForm project based on c#? So first, please check whether you installed the .NET Desktop development workload.
# #My work around has been to go back to VS 2017 and open the form there and then proceed to program it under 2019.
> >Did you mean that you create a WinForm project based on c# and migrate it to VS2019? In general, when opening this project on VS2019, you should click File-->Open-->Project/Solution to open your project. When you adding a form, you should right-click on your project and select-->Add-->New Item-->Windows Form(remember to choose Installed and then input "form" in the search box )
Any feedback will be expected.
Best Regards,
Perry
MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected]
Sunday, September 29, 2019 1:50 PM
This is a project that has been on VS for several years using VB.net. I migrated to VS2019. On the above screen, I click on Add/New Item/Windows Form and it gives me the list but Windows Form does not appear. In the search box, it has Search (Ctrl+E). If I type "form" in the search box, the only item that comes up is XSLT File
Sunday, September 29, 2019 1:58 PM
I don't know how to look at my VS Installer. This is a Windows Form Application with a Target framework of .Net Framework 4.5.2. Under references, it shows it has System.Windows.Forms (Type .NET, vERSION 4.0)
Sunday, September 29, 2019 5:55 PM
Yeah, it is hidden in a strange place. At least it is in VS 2017. Go to File | New | Project and in the lower-left you will see a link to the installer. At least that is how it works for VS 2107. In the installer we have the ability to select and unselect components and when we click Modify it will do what is requested.
It will help for you to become familiar with what is there.
Note that if you had replied to me when I suggested you look at the installer then I would have replied to you then.
Sam Hobbs
SimpleSamples.Info