Here is your answer:
- Use a Textbox
- When you want the text masked set TextBox.UseSystemPasswordChar = true;
- when you want to see the text set TextBox.UseSystemPasswordChar = false;
- Profit
Example:
private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
if (checkBox1.Checked == true)
{
TextBox.UseSystemPasswordChar = true;
}
else
{
TextBox.UseSystemPasswordChar = false;
}
}
Black dots when you want them, words when you don't. You can use what ever trigger/logic you want for the turning on and off but this way you are only using one control and get all the functionality that you specified you needed.