| Adding great features to form's system menu via Inheritance |
Applies To |
|
| OS: VB: |
Windows .NET Framework |
|
Sometimes a certain piece of code is so general that you want to bottle it and sell it to everyone. In this case we have a piece of code that I normally apply to all the forms that I create in VS.NET. I figure that every form can use a built-in ability to do the following:
![]() |
So how do you apply this code to your forms? That's the cool part and this is what makes inheritance so powerful. Here is a short step by step tutorial (it assumes you have downloaded the project).
Public Class Form1 Inherits System.Windows.Forms.FormChange it to the following:
Public Class Form1 Inherits FormSysMenuValueAdd.MasterForm