private void textBoxValidation_KeyPress(object sender, KeyPressEventArgs e) { ValidationText tx = new ValidationText(); tx.textBoxValidation_KeyPress(sender, e); }