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

后端 未结 21 2139
予麋鹿
予麋鹿 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:41

    Go to solution explorer and right click on it then add existing item, here select the existing form path. Now, and this is important, on the page where you want to use existing form, you must add header file:

    using "your existing project name";
    

提交回复
热议问题