コード例 #1
0
        private void button15_Click(object sender, EventArgs e)
        {
            Disseny disseny = new Disseny();

            disseny.ShowDialog();
            Close();
        }
コード例 #2
0
ファイル: Principal.cs プロジェクト: polcodinachs/TFG
        private void toolStripMenuItem2_Click(object sender, EventArgs e)
        {
            Disseny newMDIChild = new Disseny();

            // Set the Parent Form of the Child window.
            newMDIChild.MdiParent = this;
            // Display the new form.
            newMDIChild.Show();
            toolStripMenuItem2.Enabled = false;
            toolStripMenuItem1.Enabled = true;
        }