private void buttonChiTiet_Click(object sender, EventArgs e) { // truyền mã sang form bên kia this.Hide(); ChiTiet formCT = new ChiTiet(""); formCT.FormClosed += FormCT_FormClosed; formCT.Show(); }
private void buttonChiTiet_Click(object sender, EventArgs e) { // truyền mã sang form bên kia DataGridViewRow current = dataGridViewDS_HS.CurrentRow; string MaTimKiem = current.Cells[0].Value.ToString(); string ChucVu = current.Cells[5].Value.ToString(); this.Hide(); ChiTiet formCT = new ChiTiet(MaTimKiem, ChucVu); formCT.FormClosed += FormCT_FormClosed; formCT.Show(); }