private void dataGridViewdshd_CellContentClick(object sender, DataGridViewCellEventArgs e) { string mahd; if (MessageBox.Show("Bạn có muốn hiển thị thông tin chi tiết?", "Xác nhận", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { mahd = dataGridViewdshd.CurrentRow.Cells["SoHD"].Value.ToString(); Chi_tiet_hoa_don hdtk = new Chi_tiet_hoa_don(); hdtk.txtSoHD.Text = mahd; hdtk.StartPosition = FormStartPosition.CenterParent; hdtk.ShowDialog(); } }
private void button2_Click(object sender, EventArgs e) { Chi_tiet_hoa_don cthd = new Chi_tiet_hoa_don(); cthd.ShowDialog(); }