<type> '<typename>' shadows an overridable method in the base class

<type> '<typename>' shadows an overridable method in the base class. If you want to override the base method, this method must be declared 'Overrides'.

A programming element is declared with the same name as an overridable procedure or property defined in the base class. In this situation, the element in this class should shadow the base class element.

By default, this message is a warning. For more information about hiding warnings or treating warnings as errors, see Configuring Warnings in Visual Basic.

Error ID: BC40005

To correct this error

  • If you intend to override the base procedure, add the Overrides keyword to the declaration.

  • If you intend to shadow the base procedure, add the Shadows keyword to the declaration.

  • If you do not intend either overriding or shadowing, change the name of the element being declared.

See also