title: Converting password to star *
body: <p>I'm just messing around in visual Studio C# at the moment and just wondering how can I convert a password inserted in a text box into stars. Here's the code and any help appreciated.</p>
  
  <pre><code>private void button1_Click(object sender, EventArgs e)
      {
          string Email = TxtEmail.Text;
          string Password = TxtPassword.Text;
  
          if (Email == "test@gmail.com" &amp;&amp; Password == "LOL")
          {
              MessageBox.Show("Login Complete");
          }
          else if (Email == "hotmail@lol.co.uk" &amp;&amp; Password == "Lol")
          {
              MessageBox.Show("Login Complete");
          }
          else if (Email == "eg@eg.co.uk" &amp;&amp; Password == "eg")
          {
              MessageBox.Show("Login Complete");
          }
          else if (Email == "" &amp;&amp; Password == "")
          {
              MessageBox.Show("Login Failed");
          }
          else
          {
              MessageBox.Show("Login Failed", "Login Failed");
          }
  </code></pre>