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

前端 未结 7 1064
情深已故
情深已故 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);
        }
    
    0 讨论(0)
提交回复
热议问题