How can I unmask password text box and mask it back to password?

前端 未结 7 1060
情深已故
情深已故 2020-11-27 21:36

How can password textbox that set to :

password_txtBox.PasswordChar =\"*\"

to be unmasked ( from checkbox ) and then mask again
without

7条回答
  •  眼角桃花
    2020-11-27 22:17

    use this one

    private void checkBox1_CheckedChanged(object sender, EventArgs e)
        {
            textBox2.PasswordChar = default(char);
        }
    

提交回复
热议问题