Example #1
0
        private void dataGridViewDK_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            string maphieudk;

            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)
            {
                maphieudk = dataGridViewDK.CurrentRow.Cells["SoPhieuDK"].Value.ToString();
                Chi_tiet_dang_ki dk = new Chi_tiet_dang_ki();
                dk.txtSoPhieu.Text    = maphieudk;
                dk.txtSoPhieu.Enabled = false;
                dk.StartPosition      = FormStartPosition.CenterParent;
                dk.ShowDialog();
            }
        }
Example #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            Chi_tiet_dang_ki ctdk = new Chi_tiet_dang_ki();

            ctdk.ShowDialog();
        }