How to easily duplicate a Windows Form in Visual Studio?

前端 未结 14 1596
梦谈多话
梦谈多话 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:16

    1.Add a new folder to your project

    2.Copy the form into that

    3.Change the name in properties as well as change the file name

    4.Check each form for their class name (they shouldn't be same)

提交回复
热议问题