Private Sub txtOPass_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtOPass.KeyUp
txtOPass.Text = Replace(txtOPass.Text, Mid(txtOPass.Text, Len(txtOPass.Text), 1), "*", 1, 1)
End Sub
Good day! My aim is to replace the character inputted by the user with "*" everytime there is an keyup event. I already solved that with the code above. My problem now is that, I can't continuously input the characters in the textbox because the focus of the cursor always go in the first character. I already tried passwordchar but that's not the kind of output I want to see. I only want to see the latest inputted character change to "*". How can I put the focus on the last character? Thank you!

New Topic/Question
Reply




MultiQuote




|