VB.Net - Hide And Show Password Text

VB.Net - How To Hide And Display Password Text Using Visual Basic.Net

visual basic.net show and hide password text


In This VB.Net Tutorial  We Will See How To Show And Hide TextBox Password Text In Button Click Event Using Visual Basic.Net Programming Language.


Project Source Code:

Public Class PassShow_Hide

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

        If TextBox1.UseSystemPasswordChar = True Then

            TextBox1.UseSystemPasswordChar = False
            Button1.Text = "Hide"

        Else

            TextBox1.UseSystemPasswordChar = True
            Button1.Text = "Show"

        End If

    End Sub

' Form Load
    Private Sub PassShow_Hide_Load(sender As Object, e As EventArgs) Handles MyBase.Load

        TextBox1.UseSystemPasswordChar = True


    End Sub
End Class


//OutPut:

visual basic.net display password string text

vb.net show password string text




Share this

Related Posts

Previous
Next Post »