3
I’m looking to put a placeholder effect on a masking text box.
The idea is to activate the CPF mask as soon as it enters the text box and disable it if the text box is empty when exiting.
private void mskCpf_Enter(object sender, EventArgs e)
{
mskCpf.Text = "";
mskCpf.Mask = "999\.999\.999-99";
}
In this code it does not recognize the backslash and so does not work this way