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

            upr.MdiParent = this.MdiParent;
            upr.Show();
        }
        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();
        }
        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();
        }