コード例 #1
0
        private void btnThoat_Click(object sender, EventArgs e)
        {
            DialogResult dr = MessageBox.Show("Bạn muốn đăng xuất?", "Thông báo", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (dr == DialogResult.Yes)
            {
                ucheThong dangnhap = new ucheThong();
                change.change(dangnhap);
            }
        }
コード例 #2
0
        private void btn_Thoat_Click(object sender, EventArgs e)
        {
            ucheThong dangnhap = new ucheThong();

            dangnhap.Dock = DockStyle.Fill;
            Index.Indexs.panel.Controls.Add(dangnhap);
            //Index.Indexs.panel.Controls["quenMK"].BringToFront();
            foreach (ucQuenMK item in Index.Indexs.panel.Controls.OfType <ucQuenMK>())
            {
                Index.Indexs.panel.Controls.Remove(item);
            }
        }