
Save and open the Form2, there's no error.
#ARCUZ 2 HOW TO DUPLICATE ITEMS CODE#
ComponentResourceManager ( typeof (Form1 )" into "Form2" - at the end, modify the Form Name (this.Name and this.text) - close and save the "" - Open the Form2.cs code - modify the"public partial class Form1" into Form2 and just after the "Public Form1()" into Form2. Modify in the "initialise component" the first ligne : ". Modify the "Partial class Form1" in "Partial class Form2" The way is : - Right-click on the form (Form1 for example) and click "Copy" - Right-click on the solution and choose "Paste" - VS created a "Copy of Form1.cs" - Rename the file in "Form2.cs" for the example - Right click on the "" and show the code : I did it in visual studio 2003/2005 without any problems. Is there a way to fix these errors? Or should I stay with my original method of duplicating a form? Neither of these errors point to my code. Duplicate items are not supported by the "Resources" parameter. SpotLight" "The item "obj\Release\" was specified more than once in the "Resources" parameter. Please look in the Task List for potential errors. The parser reported the following error 'Error HRESULT E_FAIL has been returned from a call to a COM component.'. "Failed to parse method 'InitializeComponent'. Of the 76 errors I get using your method, the Fatal error that prevents opening the new form is It displays a few fields from Days (parent dataTable) and then has a dataGridView which is bound to the DayDetails DataTable (child dataTable). The form I'm duplicating is a form bound to 2 dataTables. (make a copy of the Project, rename the form, open the original Project and "add Existing Item." The imported form does not give any errors. I do not get these errors if I use my method on the same form. The only solution I've found to fixing the errors is to delete the new form that was created by the paste. I get 76 errors and 1 is fatal when I try to open the new form. when I try your method to copy & paste a form.
