mobile1txt
TextBox
private void mobile1txt_KeyPress(object sender, KeyPressEventArgs e) { if (mobile1txt.Text.StartsWith("9") || mobile1txt.Text.StartsWith("8") || mobile1txt.Text.StartsWith("7")) { } else { MessageBox.Show("Mobile number should start with 9, 8 or 7 only", "Information", MessageBoxButtons.OK, MessageBoxIcon.Warning); e.Handled = true; mobile1txt.Focus(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)