J Jimmy V Jul 18, 2007 #1 I want to override a property in VB, I know in C# I can do this: Public new String Text {
A Alex Meleta Jul 18, 2007 #2 Hi Jimmy, .... Class Base Public Overridable ReadOnly Property Total() As Double Get Return .... End Get End Property End Class Class Base Inherits Derived Public Overrides ReadOnly Property Total() As Double Get Return ... End Get End Property End Class .... There is the full example: http://www.awprofessional.com/articles/article.asp?p=170719&seqNum=4&rl=1 PS. "new" statement is not an overriding. It's hidding. Regards, Alex [TechBlog] http://devkids.blogspot.com JV> I want to override a property in VB, I know in C# I can do this: JV> JV> Public new String Text JV> {
Hi Jimmy, .... Class Base Public Overridable ReadOnly Property Total() As Double Get Return .... End Get End Property End Class Class Base Inherits Derived Public Overrides ReadOnly Property Total() As Double Get Return ... End Get End Property End Class .... There is the full example: http://www.awprofessional.com/articles/article.asp?p=170719&seqNum=4&rl=1 PS. "new" statement is not an overriding. It's hidding. Regards, Alex [TechBlog] http://devkids.blogspot.com JV> I want to override a property in VB, I know in C# I can do this: JV> JV> Public new String Text JV> {