Private Sub Txt1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TxtUserID.TextChanged Randomize() Dim musk As String Select Case 1 + CInt(Rnd() * 2) Case 1 musk = "*" Case 2 musk = "**" Case 3 musk = "***" Case Else musk = "*" End Select Txt1.PasswordChar = musk End Sub