Posts by TIAGO • 39 points
1 post
-
3
votes4
answers25170
viewsA: Format a CPF string?
private void txtCNPJ_KeyPress(object sender, KeyPressEventArgs e) { ComboBox t = sender as ComboBox; // ou text Box if (e.KeyChar >= 48 && e.KeyChar <= 57) { t.SelectionStart =…