Beispiel #1
0
        private void btnDK_Click(object sender, EventArgs e)
        {
            fDangky dk = new fDangky();

            this.Hide();
            dk.ShowDialog();
        }
Beispiel #2
0
        private void fLogin_FormClosing(object sender, FormClosingEventArgs e)
        {
            DialogResult d = MessageBox.Show("Bạn có muốn thoát không?", "Exit", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (d == DialogResult.No)
            {
                e.Cancel = true;
            }
            fDangky dk = new fDangky();

            dk.Close();
        }