VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Remove the password-chars (stars, asc 2A hex) from the input boxes. Run it after you opened the inp

by Waterfall (4 Submissions)
Category: Windows System Services
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Tue 14th December 1999
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Remove the password-chars (stars, asc 2A hex) from the input boxes. Run it after you opened the input dialog mask.

API Declarations


Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Public Declare Function IsWindow Lib "user32.dll" (ByVal hWnd As Long) As Long
Public Const EM_SETPASSWORDCHAR = &HCC
Public Const EM_GETPASSWORDCHAR = &HD2
Dim Tmp As Long


Rate Remove the password-chars (stars, asc 2A hex) from the input boxes. Run it after you opened the inp



Tmp = 0
For i = 1 To 30000
    If IsWindow(i) Then
        Tmp = Tmp + 1
        SendMessage i, EM_SETPASSWORDCHAR, 0&, ByVal 0&
        UpdateWindow i
    End If
    DoEvents
Next i
MsgBox "Done, PWChars on " + Format(Tmp) + " windows reset."
End Sub


Download this snippet    Add to My Saved Code

Remove the password-chars (stars, asc 2A hex) from the input boxes. Run it after you opened the inp Comments

No comments have been posted about Remove the password-chars (stars, asc 2A hex) from the input boxes. Run it after you opened the inp. Why not be the first to post a comment about Remove the password-chars (stars, asc 2A hex) from the input boxes. Run it after you opened the inp.

Post your comment

Subject:
Message:
0/1000 characters