Name '<name>' is not declared
A statement refers to a programming element, but the compiler cannot find an element with that exact name.
Error ID: BC30451
To correct this error
Check the spelling of the name in the referring statement. Visual Basic is case-insensitive, but any other variation in the spelling is regarded as a completely different name. Note that the underscore (_) is part of the name and therefore part of the spelling.
If the spelling is correct and the syntax of any object member access is correct, verify that the element has been declared. For more information, see Declared Elements in Visual Basic.
If the programming element has been declared, check that it is in scope. If the referring statement is outside the region declaring the programming element, you might need to qualify the element name. For more information, see Scope in Visual Basic.