Hi guys, I'm new to c# and I'm trying to make a login scheme. I want to make it so that when you type the password that digits appear to hide the password.
This is the code I used but it didn't work...
----------------------------------------------------------------------------
private void textbox2_TextChanged(object sender, EventArgs e)
{
if (textbox2.Text == "Password")
{
textbox2.UseSystemPasswordChar = false;
}
else
textbox2.UseSystemPasswordChar = true;
}
-----------------------------------------------------------------------------
Can anyone help me please?
This is the code I used but it didn't work...
----------------------------------------------------------------------------
private void textbox2_TextChanged(object sender, EventArgs e)
{
if (textbox2.Text == "Password")
{
textbox2.UseSystemPasswordChar = false;
}
else
textbox2.UseSystemPasswordChar = true;
}
-----------------------------------------------------------------------------
Can anyone help me please?