i made code to format number when total lengh is == 11, it run on texbox change, but only format when it have 11 characters, i would like to make it on runtime (live), understood ? Its possible ? See my code:
private void textBox3_TextChanged(object sender, EventArgs e)
{
Int64 cpf = Convert.ToInt64(textBox3.Text);
if (textBox3.TextLength == 11)
{
textBox3.Text = string.Format(@"{0:000\.000\.000-00}", Convert.ToInt64(cpf));
}
}
Thanks
runtime
already. :D – Michael Perrenoud Apr 13 at 11:19