How to add new win form in project C#?

跟風遠走 提交于 2021-02-16 13:24:18

问题


I have existing project. I tried to add new empty form in this, but I have limited choose of windows form that mean to inheriting. But I need just simple form.

I use VS 2017


回答1:


It seems like you didn't install the required components. To do this, close VS, run your Visual Studio Installer (you probably installed VS through it), click modify for your VS Version and make sure that .Net desktop development is checked:

Then launch the installation by hitting Modify and start VS again. If you now want to create a new Project it should look something like that:




回答2:


Try this

  1. Open Solution Explorer

  2. Right click on your Project's Name.

  3. Add.

  4. Windows Form.

If you still don't see it, you might be missing the Dot Net desktop development Component.



来源:https://stackoverflow.com/questions/45653884/how-to-add-new-win-form-in-project-c

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!