I have this method to count the number of characters typed and it is in Visual Basic
lblconteo.Text = Len(txtMensaje.Text);
as you would in c #?
I have this method to count the number of characters typed and it is in Visual Basic
lblconteo.Text = Len(txtMensaje.Text);
as you would in c #?
int conteo = txtMensaje.Text.Length;
Greetings
You can get the number of characters using the property Length and you can convert this value to String to use it in your label:
lblconteo.Text = txtMensaje.Text.Length.ToString();
Or also as another option:
lblconteo.Text = Convert.Tostring(txtMensaje.Text.Length);