'<method1>' cannot override '<method2>' because it expands the access of the base method

A procedure specifies Overrides but declares an accessibility less restrictive than that of the method to be overridden. You cannot expand the accessibility, meaning you cannot make the overriding method more accessible than the method it overrides. For example, if the base class method is Protected, you cannot override it with a Public method.

Error ID: BC32203

To correct this error

  • Remove the Overrides keyword, or change the accessibility to be at least as restrictive as that of the base class method.

See Also

Concepts

Overriding Properties and Methods

Access Levels in Visual Basic

Shadowing in Visual Basic