I'm trying to get a specific amount of characters typed into a texbox, the current code is as follows:
novaconfiguracao.CupomEstabelecimento = tb_NomeFantasia.Text.Substring(0,48).ToString();
In case of typing less than 48 or more than 48 get caught up to 48.