copy and paste controls between versions of visual studio ?


We have an application build in 2003 and we are upgrading it to vb 2008. We can't use the upgrade wizard, anyway, the application is totally different in 2008. I just want to copy controls in then designer screen from visual studio 2003 to a windows form in vs 2008. Sounds stupid, but we can't figure out how to do it!! ctrl-c, ctrl-v don't works. neither copy-paste from the mouse or the Edit menu. Can we just copy controls from a visual studio version to another??

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Have you tried exporting the form as a template and trying to use it in vs2008?
With the form selected click on File,Export Template.
A little more detail:
On the File menu, click Export Template.

Click Item Template, select the project that contains the item, and click Next.

Select the item for which you want to create a template, and click Next.

Select the assembly references to include in the template, and click Next.

Enter the icon file name, template name, and template description, and click Finish.

The files for the template are added to a .zip file and copied to the ..\Users\<username>\Documents\Visual Studio 2008\Templates\ItemTemplates\ folder.

Dominic34Author Commented:
In VS 2003, there is no "Export" option in the File menu.
Also you can try copying the form files into your target visual studio 2008 project directory. Usually you need to copy three files i.e .vb, .designer.vb, .resx files. same for c sharp files. then try to open the that form in visual studio. It will try to upgrade and if succeeded you can now copy the controls you need. Hope this helps you.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
You can create it manually then:
The heart of the process of creating a template manually boils down to three basic steps. (After you design what you want your template to do. This is just the process of actually creating it.)

1.Assemble the files that are necessary for your template in one folder.
2.Code a .vstemplate XML file that describes the template.
3.Zip the files together (including the .vstemplate file) and copy the Zip file to the Visual Studio project template directory.

To manually create an item template
1.Create a project and project item.

2.Edit the project item until it is ready to be saved as a template.

3.As appropriate, edit the code file to indicate where parameter replacement should take place. For more information on parameter replacement, see How to: Substitute Parameters in a Template.

4.Create an XML file and save it with a .vstemplate extension in the same directory as your item.

5.Author the .vstemplate XML file to provide item template metadata. For more information, see the example in the following section.

6.Save and close the .vstemplate file.

7.Select the files included in your template, right-click, select Send To, and click Compressed (zipped) Folder. The files that you selected are compressed into a .zip file.

8.Place the .zip file in the user item template location. By default, the directory is \My Documents\Visual Studio 2005\Templates\ItemTemplates\. For more information, see How to: Locate and Organize Project and Item Templates.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.