|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Copying Windows Form to another projectin 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 Show quoteHide quote "Mike" <unkn***@unknown.tv> wrote in message news:uw686KZ5JHA.1092@TK2MSFTNGP06.phx.gbl... >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 > > -- Dragging the form to the other project worked. You
just need to drag any resources as well. Thanks -- Show quoteHide quoteCor Ligthert[MVP] wrote: > 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 > > "Mike" <unkn***@unknown.tv> wrote in message > news:uw686KZ5JHA.1092@TK2MSFTNGP06.phx.gbl... >> 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 >> >> -- > |
|||||||||||||||||||||||