如何子类化Windows窗体? [英] How to subclass a windows form?
本文介绍了如何子类化Windows窗体?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想创建一个包含一些字段和属性的基类
并使用它代替寡妇形式.我创建的任何新表格都应该
从MyForm类继承.我该怎么做?
解决方案
看一下项目中MyForm
的定义,您将确切地知道该怎么做.
I want to create a base class with some fields and prorerties
and use it instead of widows Form. Any new forms I create should be
inherited from MyForm class. How can I do this?
解决方案
Look at the definition of MyForm
in your project, and you''ll see exactly how to do it.
这篇关于如何子类化Windows窗体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文