viernes, 7 de noviembre de 2014

C# - How to get the number of characters in a textbox (2 options)



int lenght = textBox1.Text.Length;
MessageBox.Show("With option 1=" + lenght.ToString());

lenght = textBox1.TextLength;
MessageBox.Show("With option 2=" + lenght.ToString());

No hay comentarios.:

Publicar un comentario