Copying winforms between projects in Visual Studio

后端 未结 18 2021
天涯浪人
天涯浪人 2020-12-13 18:16

What is the best way to copy or cut/past a form from one Project to another Project within a Solution in Visual Studio?

Whenever I try it, using the solution explore

18条回答
  •  时光说笑
    2020-12-13 18:43

    Figured it out - knew it would be something daft.

    Apparently the target project should have the references:

    • System.Windows.Forms
    • System.Drawing

    included within the project FIRST before you do any copy or pasting or else you will get the problem I described.

    Thanks for anyone who tried to help BTW.

提交回复
热议问题