copy a form inside a c# project  
Author Message
Edward1





PostPosted: Visual C# General, copy a form inside a c# project Top

I have a form and I need to make another one 90% same as the first one.
Is any way to copy the form and code in order to make to later make some little change .

I try to use copy/paste over the form's name, actualley is copied and seems that aeavrthing is OK, but when run the project i get the folloing error:

Error 1 The item "obj\Release\Project1.Invoice_Lst.resources" was specified more than once in the "Resources" parameter. Duplicate items are not supported by the "Resources" parameter. Project1

thanks in advance for your help,

Edward



Visual C#16  
 
 
Mark Benningfield





PostPosted: Visual C# General, copy a form inside a c# project Top

Hello All.

Edward1:

In a situation like this, I would look at whether or not the changes between the two forms lend themselves to inheritance. That is, if the second form is a kind of the first form, then derive the second form from the first one. That is easy to do in the IDE, just add a new "Inherited Form" to your project.

HTH.