For additional infomation:
There is an alternative in TextBox.PasswordChar, you can also use TextBox.UseSystemPasswordChar.
private void checkBox1_CheckedChanged(object sender, EventArgs e){
textBox1.UseSystemPasswordChar = checkBox1.Checked ? true : false;
}