4
I am trying to get a specific amount of typed characters in a texbox, the current code is as follows:
novaconfiguracao.CupomEstabelecimento = tb_NomeFantasia.Text.Substring(0,48).ToString();
In the case of being typed less than 48 or more than 48 pick up maximum 48.
And what is the doubt? You’re already doing what you say you want.
– Maniero
The problem is you’re making a mistake
– Bruno Rodrigues
@Brunorodrigues complete the question with all relevant details, please. Suggested reading: [Ask].
– Bacco