Copying winforms between projects in Visual Studio

后端 未结 18 2168
天涯浪人
天涯浪人 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:48

    If you need use the same form in differents projects, the solutions is: Create a "Class Library Project", to this proyect you add the forms what you need share, then just add the reference to the dll to your main project, you will can make reference to forms easily. Its works perfect for me

提交回复
热议问题