简体   繁体   English

添加继承自子窗体的类

[英]Adding inherited class, derived from child form

I created a base form (baseForm) which sets the color etc. for all the other forms. 我创建了一个基本表单(baseForm),它为所有其他表单设置颜色等。 Then I created an other form, derived from baseForm, lets call it childForm. 然后,我创建了另一个从baseForm派生的表单,将其称为childForm。 Now I want to derive an other form from this childForm, and thus inherit all the settings, buttons, etc from the childForm and baseForm. 现在,我想从此childForm派生其他表单,从而从childForm和baseForm继承所有设置,按钮等。 But after adding this new inherited form, derived from childForm, the only thing I see in design view is one large line of HTML code... 但是在添加了这个新的继承自childForm的继承表单之后,我在设计视图中看到的唯一一件事就是一大行HTML代码...

Does someone know an answer to this? 有人知道答案吗?

The solution to this problem: In the childForm, which I tried to inherit, I used the LineShape from the Visual Basic Powerpacks [1]. 解决此问题的方法:在试图继承的childForm中,我使用了Visual Basic Powerpacks中的LineShape [1]。 Once I deleted these lines, the inheritenace was no problem... [1]: msdn.microsoft.com/en-us/vstudio/bb735936.aspx 删除这些行后,继承就没问题... [1]:msdn.microsoft.com/en-us/vstudio/bb735936.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM