コード例 #1
0
        }//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
コード例 #2
0
        private void HomeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Hide();
            Form f = new FormHome();

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

            f.Closed += (s, args) => this.Close();
            f.Show();
        }
コード例 #4
0
        private void FormMain_Load(object sender, EventArgs e)
        {
            FecharFormulariosFilhos();

            FormHome f = new FormHome();

            f.MdiParent = this;
            f.Show();
        }
コード例 #5
0
        private void HomeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FecharFormulariosFilhos();

            this.homeToolStripMenuItem.BackColor = Color.MediumTurquoise;

            FormHome f = new FormHome();

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