private void ToolStripTimKH_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == 13) { if (tìmTheoHọTênToolStripMenuItem.Checked) { ctrl.TimHoTen(toolStripTextBoxTimKH.Text); } else if (tìmGiớiTínhToolStripMenuItem.Checked) { ctrl.TimGioiTinh(toolStripTextBoxTimKH.Text); } else if (tìmĐịaChỉToolStripMenuItem.Checked) { ctrl.TimDiaChi(toolStripTextBoxTimKH.Text); } else { ctrl.TimCMND(toolStripTextBoxTimKH.Text); } } }