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
Make sure that you copy not only the Form.cs, but also the Form.designer.cs and Form.resx files.
But I need to ask why you would want to maintain a copy of the same form in multiple projects within the same solution. Sounds as if you might want to generalize the code in it, put it in a class library and re-use it in the places where it is applicable.
It's way easier now in 2012. Just go to File > Add > Existing Project > Drag and drop the form into the project that you want to add it to.
I tried the following process in Visual Studio 2012 and it worked.
Use ReSharper (get the demo), right-click the class in Code View, Refactor->Move, and move it to another project.
The added benefit is that if you change the namespace by moving it between projects, it'll auto-update all references.
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
** This one works for me:
1) Copy the source files (.cs or vb, .designer, .resx) into target folder
2) Show hidden files in target solution
3) Select these files and include them into project.
This will add winform or any other partially divided files cleanly.