}//Comando para botão voltar, voltar para form Alunos

        private void ButtonHomeP1_Click(object sender, EventArgs e)
        {
            this.Hide();
            Form f = new FormHome();

            f.Closed += (s, args) => this.Close();
            f.Show();
        }//Comando para o botão Home voltar para form Home
Beispiel #2
0
        private void HomeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Hide();
            Form f = new FormHome();

            f.Closed += (s, args) => this.Close();
            f.Show();
        }
        private void ButtonHomeP_Click(object sender, EventArgs e)
        {
            this.Hide();
            Form f = new FormHome();

            f.Closed += (s, args) => this.Close();
            f.Show();
        }
        private void FormMain_Load(object sender, EventArgs e)
        {
            FecharFormulariosFilhos();

            FormHome f = new FormHome();

            f.MdiParent = this;
            f.Show();
        }
        private void HomeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FecharFormulariosFilhos();

            this.homeToolStripMenuItem.BackColor = Color.MediumTurquoise;

            FormHome f = new FormHome();

            f.MdiParent = this;
            f.Show();
        }