How to code NAME textbox that accepts only letters & blankspaces. Same for NUMBER textbox:
private void tbOwnerName_TextChanged(object sender, EventArgs e) { /*if (!char.IsControl(e.KeyChar) && !char.IsLetter(e.KeyChar)) { e.Handled = true; base.OnKeyPress(e); MessageBox.Show("Please enter Characters only"); }*/ }