February 23, 2019
Hot Topics:

Verify the Windows Password

  • November 20, 2002
  • By Sam Huggill
  • Send Email »
  • More Articles »

Add a new form to the project and add two text boxes (txtUsername & txtPassword) and a command button (cmdVerify). Copy the following code into the form:

Private Sub cmdVerify_Click()
MsgBox "The password you supplied was _
  " & VerifyWindowsLoginUserPassword(txtPassword.Text)
End Sub

Private Sub Form_Load()
txtUsername = GetWindowsLoginUserID
txtUsername.Enabled = False
End Sub

Page 3 of 3

Comment and Contribute


(Maximum characters: 1200). You have characters left.



Enterprise Development Update

Don't miss an article. Subscribe to our newsletter below.

Thanks for your registration, follow us on our social networks to keep up-to-date