添加继承自子窗体的继承类的问题 [英] Problem with adding inherited class, derived from child form
本文介绍了添加继承自子窗体的继承类的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我创建了一个基本表单(baseForm),它为所有其他表单设置颜色等.然后,我创建了另一个从baseForm派生的表单,将其称为childForm.现在,我想从此childForm派生其他表单,从而从childForm和baseForm继承所有设置,按钮等.但是在添加了这个新的继承自childForm的继承表单之后,我在设计视图中看到的唯一一件事就是一大行HTML代码...
有人知道答案吗?
解决方案
我的问题的解决方案是一个非常愚蠢的...在试图继承的childForm中,我使用了 Visual Basic Powerpacks中的LineShape. [ 解决方案
The solution to my problem is a very silly one... In the childForm, which I tried to inherit, I used the LineShape from the Visual Basic Powerpacks.[^]. Once I deleted these lines, the inheritenace was no problem...
Could you ellaborate the doubt a bit?
are you getting error, that is not allowing to generate new exe? then solve errors & then clean solution, rebuilt now reopen form
I think it''s a warning, it happens when we use usercontrols or inherited forms due to mistakes in code
just close the design-view of form & clean solution, rebuilt it sucessfully then open that form again.
Happy coding!
:)
这篇关于添加继承自子窗体的继承类的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文