如何在Visual Studio中轻松复制Windows窗体? [英] How to easily duplicate a Windows Form in Visual Studio?

查看:590
本文介绍了如何在Visual Studio中轻松复制Windows窗体?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Visual Studio中轻松复制C#/VB表单?如果我复制&粘贴在解决方案资源管理器中,它在内部使用相同的类,并且变得一团糟.你怎么做呢?

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?

推荐答案

我通常将文件复制到Windows资源管理器中,在记事本/写字板中打开它们,然后只需更改顶部提到的类名即可.将这些文件包含在您的项目中,一切都会顺利进行的.

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.

这篇关于如何在Visual Studio中轻松复制Windows窗体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆