Ver originalprivate void txtnumshipper_KeyPress(object sender, KeyPressEventArgs e) { if (txtnumshipper.Text.Length == 8 && e.KeyChar == '\r') { <...................> } }