How do you add an existing form to a new project?

后端 未结 21 2190
予麋鹿
予麋鹿 2020-12-13 09:06

I have never been able to successfully add a Form from an existing file to a new project.

I read on a blog that you add just the *.cs file and the depen

21条回答
  •  感动是毒
    2020-12-13 09:37

    You can still use "Add Existing iTem"

    1. "Add Existing iTem", select three files (.cs .resx .Designer.cs)

    2. make sure "namespace Application" in your .cs file is the same as the project

    3. now you can use auto-complete the Form you just added.

提交回复
热议问题