Copying Windows Form to another project

  • Thread starter Thread starter Mike
  • Start date Start date
M

Mike

I guess I can explore to see what happens, but if I have two projects
in a solution:

Application project
Class Control Library

The application project has a Windows FORM, i.e. frmLogin.vb, and I
want to move it to the control library project.

Should I just:

1) Drag the vb from the solution explore to the 2nd project?

2) Do a Project ADD Existing?

I guess I want to make sure that everything about the form is copied
because I see I will be done this a lot as I create forms in projects
and then I want to move it to a library after it is debugged and tested.

TIA

--
 
Mike,

This needs a special trick.

First make a copy in Windows Explorer or something like that and then

Don't use Copy, use Cut then everything is taken and put back in the right
place.
As you are copying then you could create a conflict so names are replaced by
defaults.

(Simply a ctrl Z puts everything back in the original)


Cor
 
Dragging the form to the other project worked. You
just need to drag any resources as well.

Thanks

--
 
Back
Top