<type1> '<membername>' conflicts with <type2> '<membername>' on the base class <type3> '<classname>' and should be declared 'Shadows'

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

This message is a warning. Shadows is assumed by default. For more information about hiding warnings or treating warnings as errors, please see Configuring Warnings in Visual Basic.

Error ID: BC40004

To correct this error

  • Add the Shadows keyword to the declaration, or change the name of the element being declared.

See Also

Concepts

Shadowing in Visual Basic

Reference

Shadows