private void textContact_TextChanged(object sender, EventArgs e) { Integrity.TextChange_Number(sender); /* * if (textContact.Text.Trim().Length > 0) * { * if (!Integrity.NumberOnly(textContact.Text.Trim())) * { * textContact.Text = textContact.Text.Substring(0, textContact.Text.Trim().Length - 1); * textContact.Select(textContact.Text.Trim().Length, 1); * } * } */ }