A Visual Inheritance Example
You have been reading quite a bit about inheritance, and it has been in the form of non-GUI classes so far. However, forms are classes, so you can inherit from forms as easily as you can any other class. VB developers have been requesting form inheritance for many years, and now you have your wish, thanks to the .NET Framework.
It is sometimes easier to see inheritance at work in forms, and there are a few caveats when inheriting forms. You'll get started with a simple example and then extend it as you work with it.
Creating the Base Project
Start a new Windows Application project in Visual Studio, and name it baseVisual. In reality, you could create this as a different project type, but starting as a Windows Application ...
Get A Programmer's Introduction to Visual Basic® .NET now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.