Here's the problem: you posted this in the Visual Basic forum. Visual Basic 2008 (or VB 9) is a form of Visual Basic .NET, and though Microsoft have dropped the ".NET" portion of the name, we still use it to distinguish it from "classic" VB (versions 6 and below; pre-2002). VB .NET is not compatible with classic VB.
Googling for "VB .NET get text from password box" found
this.