コード例 #1
0
        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.Close();
            UserPendingReports upr = new UserPendingReports();

            upr.MdiParent = this.MdiParent;
            upr.Show();
        }
コード例 #2
0
        private void homeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            UserPendingReports newMDIChild = new UserPendingReports();

            // Set the Parent Form of the Child window.
            newMDIChild.MdiParent = this;
            // Display the new form.
            newMDIChild.Show();
        }
コード例 #3
0
        private void WelcomePage_Load(object sender, EventArgs e)
        {
            UserAccountId = Default.UserAccountId;
            UserPendingReports newMDIChild = new UserPendingReports();

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