Edit

Share via


'<method>' is not accessible in this context because it is '<modifier>'

You have attempted to access a method that is not accessible in this context because it has been declared Private. A possible cause for this error is that the Visual Basic compiler imports all members of a class and is case-insensitive, so names differentiated only by casing may collide.

Error ID: BC30389

To correct this error

  • Consider declaring the method Public.

  • If the error is caused by a name collision, differentiate the colliding names by more than case.

See also