How to create a copy of a form in the same project?

Posted on 2007-08-03
Last Modified: 2013-12-17
How to create a copy of a form in the same project and rename it?

I copied a form and pasted it in the same project. Then I renamed the file name from the Visual Studio IDE. I also changed the form class name.

While compiling, I get this error:
The item "obj\Release\CommissionAgent.frmAllTaluks.resources" was specified more than once in the "Resources" parameter.  Duplicate items are not supported by the "Resources" parameter.

What should I do?
Question by:rajesh_khater
    LVL 12

    Accepted Solution

    Try creating a whole new form and copy and paste everything inside the "public partial class ..." from both the form.cs and the form.designer.cs
    LVL 18

    Expert Comment

    Did you change the class nema in designer too?

    LVL 29

    Expert Comment

    by:Gautham Janardhan
    u could also use inheritance

    instead of inheriting from Windows.Form u can specify ur other form there

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Suggested Solutions

    Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
    Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now