Copying Windows Form to another project

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

--
 
C

Cor Ligthert[MVP]

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
 
M

Mike

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

Thanks

--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top