Visual Sudio Copying form files

Source: Internet
Author: User

Because the things you make, look similar, you need to copy and paste the form.

There are two cases where you need to copy a form

1. Within the same project

  • Right-click the form-Copy, then paste,

  • Modify the new form's ". cs" and ". Designer.cs "class file name public partial class new form name: Form

  • Change the form name of the new form

After you cannot copy directly, modify the new form name, which will cause the original form to be modified as well. It may be reported that multiple error messages are specified in the "Resources" parameter


2. Cross-project Copy form

  • Copy the form that corresponds to the form CS file (form name. cs), design file (form name. designer.cs), resource file

  • Right-click inside other projects, add New Item-"Select Existing Item-" Find form CS file, complete add

  • Edit Form space Name (namespace)

  • Editing a design file

  • Rebuild Project




Visual Sudio Copying form files

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.