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?
mohd_haqConnect With a Mentor Commented:
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.
13598Connect With a Mentor Commented:
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.
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.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.