private void btnHome_Click(object sender, EventArgs e) { this.Hide(); Home2 home = new Home2(PerfilUsuarioLogado); home.StartPosition = FormStartPosition.CenterScreen; home.ShowDialog(); }
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(); }