Example #1
0
 private void TimTheotentoolStripTextBox1_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         ToolStripTextBox tenCanTim = sender as ToolStripTextBox;
         DataTable        kq        = dbKH.LayKhachHangTheoTimKiem(tenCanTim.Text);
         if (kq.Rows.Count < 1)
         {
             MessageBox.Show("Không tìm thấy kết quả nào!", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
             return;
         }
         LoadData2(kq);
     }
 }