如何通过VB.NET实现类的继承?
- 内容介绍
- 文章标签
- 相关推荐
本文共计177个文字,预计阅读时间需要1分钟。
我是VB的新手,我想从DataGridView继承,我使用了类似的代码+Public Class DataGridViewEx Inherits DataGridView+End Class,但编译器会生成错误,因为End of statement需要指向Inherits DataGridView。有什么不对的,我该怎么做?
我是VB的新手,我想从DataGridView继承,我使用类似的东西Public Class DataGridViewEx Inherits DataGridView End Class
但编译器会生成错误,因为End of statement需要指向Inherits DataGridView.有什么不对,我应该怎么做?
把它放在下一行:Public Class DataGridViewEx Inherits DataGridView End Class
MSDN: Inherits
If used, the Inherits statement must be the first non-blank, non-comment line in a class or interface definition. It should immediately follow the Class or Interface statement.
本文共计177个文字,预计阅读时间需要1分钟。
我是VB的新手,我想从DataGridView继承,我使用了类似的代码+Public Class DataGridViewEx Inherits DataGridView+End Class,但编译器会生成错误,因为End of statement需要指向Inherits DataGridView。有什么不对的,我该怎么做?
我是VB的新手,我想从DataGridView继承,我使用类似的东西Public Class DataGridViewEx Inherits DataGridView End Class
但编译器会生成错误,因为End of statement需要指向Inherits DataGridView.有什么不对,我应该怎么做?
把它放在下一行:Public Class DataGridViewEx Inherits DataGridView End Class
MSDN: Inherits
If used, the Inherits statement must be the first non-blank, non-comment line in a class or interface definition. It should immediately follow the Class or Interface statement.

