コード例 #1
0
        private void btnHome_Click(object sender, EventArgs e)
        {
            this.Hide();
            Home2 home = new Home2(PerfilUsuarioLogado);

            home.StartPosition = FormStartPosition.CenterScreen;
            home.ShowDialog();
        }
コード例 #2
0
        private void btnVoltar_Click(object sender, EventArgs e)
        {
            Hide();
            Home2 home = new Home2(PerfilUsuarioLogado);

            //formMontarAgendaEvento.MdiParent = this;
            //formMontarAgendaEvento.ControlBox = false;

            home.StartPosition = FormStartPosition.CenterScreen;
            home.ShowDialog();
        }