本文介绍了C-Sharp Windows应用程序中表单设计/代码的副本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们可以在C Sharp Windows应用程序中复制包含所有设计/编码以及另一个表单名称的表单吗?

这样可以节省设计/复制时的时间

如果可以,如何

请帮助我

Can We copy a Form with all Design/Coding with another Form Name in C Sharp Windows Application.

So that we may save time at design/copy time

If, Yes HOW

Please Help me

推荐答案



public partial class Form1 : Form
    {
      public Form1()
        {





public partial class Form2 : Form
    {
      public Form2()
        {



如果Form2中的控件必须与Form1中的控件相同,那么您无需更改其他任何内容.

寻找任何可能会丢失的控件.只需将它们从资源中删除即可.



If the controls in form2 have to be same as in form1, then you don''t need to change anything else.

Look for any controls that could get missing. Just remove them from resources.


这篇关于C-Sharp Windows应用程序中表单设计/代码的副本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-27 16:59
查看更多