How to easily duplicate a Windows Form in Visual Studio?

前端 未结 14 1429
梦谈多话
梦谈多话 2021-01-30 21:03

How can I easily duplicate a C#/VB Form in Visual Studio? If I copy & paste in the Solution Explorer, it uses the same class internally and gets messed up. How do you do it?

14条回答
  •  孤街浪徒
    2021-01-30 21:18

    If you're working in VS 2019, take a few minutes to create an item template -- it's a perfect solution. How to: Create item templates

    Not sure if it applies to earlier versions of VS.

提交回复
热议问题