O'Reilly logo

Application Development Using Visual Basic® and .NET by Dana L. Wyatt, Peter Thorsteinson, Robert J. Oberg

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Visual Inheritance

Microsoft's .NET Framework supports an interesting new feature called Visual Inheritance. As you will recall from Chapter 5, inheritance allows you to build new classes that extend the functionality of their base class. In Windows Forms, Visual Inheritance allows you to create new forms by inheriting the appearance and functionality of existing forms. In the derived form, you can see the controls on the base form as well as add new controls. This is all accomplished using the Inherits keyword. For example, SomeNewForm can inherit the appearance, controls, events handling, etc. from SomeBaseForm by coding:

Public Class SomeNewForm
						Inherits SomeBaseForm

   ...

End Class

In the following two subsections, we will discuss the development ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required