[VB6 equivalent: PWD_PromptEx]
Dim strPassword As String strPassword = Pwd.Prompt(512, "Demo of PWD_PromptEx", "Type secret phrase:") ' Do something with the password... If strPassword.Length > 0 Then Console.WriteLine("Password entered=" & strPassword) Else Console.WriteLine("Empty password entered or User Cancelled") End If ' Clean up strPassword = ""
See Also: