コード例 #1
0
        private void btnAcessoSala_Click_1(object sender, EventArgs e)
        {
            pnlForm.Visible = false;
            frmAcessoSala acessoSala = new frmAcessoSala();

            acessoSala.Show();
            this.Hide();
        }
コード例 #2
0
        private void btnAcessoSala_Click(object sender, EventArgs e)
        {
            VerificaFormAberto();
            pnlForm.Visible = true;
            frmAcessoSala acessoSala = new frmAcessoSala();

            acessoSala.TopLevel = false;
            pnlForm.Controls.Add(acessoSala);
            acessoSala.Show();
        }