title: how do i create a coding to hide login password in visual basic 2012 (OOP method)
body: <p>i'm working on coding of login form program  using visual studio 2012 and SQL server 2012.</p>
  
  <p>the function i want  is this:
  when i type the password during login the password will show "*" instead of the password.</p>
  
  <p>what is the coding to do that?</p>
  
  <p>my login form:</p>
  
  <pre><code>Public Class Form2
  
      Private Sub Form2_Load(sender As Object, e As EventArgs) Handles MyBase.Load
          BackColor = Color.LightGray
      End Sub
  
      Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
  
          ClassSiswa.namadatabase = "KPIRWAN"
          Dim caridata As SqlClient.SqlDataReader
          caridata = ClassSiswa.CariDataPengguna(ClassSiswa.opencon, TextBox1.Text, TextBox2.Text)
          If Not caridata.Read Then
              MsgBox("Nama dan Sandi Tidak Terdaftar")
          Else
              Me.Hide()
              Form1.Show()
          End If
          ClassSiswa.closecon()
      End Sub
  
  End Class
  </code></pre>