Lompat ke konten Lompat ke sidebar Lompat ke footer

VB.Net - Hide And Show Password Text

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

 How To Hide And Display Password Text Using Visual Basic VB.Net - Hide And Show 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:

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

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




Posting Komentar untuk "VB.Net - Hide And Show Password Text"