How to easily duplicate a Windows Form in Visual Studio?

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

    I usually copy the files in windows explorer, open them up in Notepad/Wordpad and just change the one mention of the class name at the top. Include those files in your project, and you'll be good to go.

提交回复
热议问题