Visual Studio Designer Copy With Name

Doğukan Topaloğlu 0 Reputation points
2024-04-27T05:37:43.91+00:00

I created a new label. It came with "label1" name. I changed the name "label1" to "myLabel1".

I'm copying this: "myLabel1" When I paste it comes as: "label1"

It wasn't like this before.

When I paste must be like this: "myLabel1", "myLabel2", "myLabel3", "myLabel4"

I looked in visual studio settings but didn't see anything. dfgfd

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,837 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,632 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 27,431 Reputation points Microsoft Vendor
    2024-04-29T04:38:49.2+00:00

    Hello @Doğukan Topaloğlu,

    Thank you for taking time to post this issue in Microsoft Q&A forum.

    I tested in Visual Studio 2022 version 17.9.3, 17.9.6 and Visual Studio 2019 version 16.11.34, the results are the same, "label1", "label2", "label3"…

    It wasn’t like this before.

    Generally, the design|name of the provided controls is set by default(label1, label2…). The design|name you set won’t be copied.

    I’m not sure, but were you using custom user controls or some special controls? If you used some custom user controls, their default design|name can be customized.

    If you still remember the version of VS which worked previously, please feel free to let us know.

    BTW, VS 2022 supports rollback. Previous version(Professional, Enterprise) of VS 2022, VS 2019 are also available.

    Sincerely,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.