How to Shadow in VB.NET
- 1). Click the Windows "Start" button and select "All Programs." Click "Microsoft .NET Framework," then click "Visual Studio." Open the VB.NET project in VS.
- 2). Double-click the class file in "Solution Explorer" to view your VB.NET code. Scroll down to the end of the class file to add your shadow method.
- 3). Add the following code to create a shadow method:
Shadows Sub ParentMethodName()
MsgBox("My customized method")
The "ParentMethodName" must be the name of the parent class's method. In this example, a message box displays when the method is called.
Source...