Пример #1
0
        private void homes_Click(object sender, EventArgs e)
        {
            if (this.ActiveMdiChild != null)
            {
                this.ActiveMdiChild.Close();
            }
            homein o = new homein();

            o.MdiParent = this;
            o.Show();
        }
Пример #2
0
        private void home_Load(object sender, EventArgs e)
        {
            label8.AutoSize     = false;
            label8.Height       = 3;
            label8.Width        = 1300;
            label8.BackColor    = Color.Red;
            label8.BorderStyle  = BorderStyle.FixedSingle;
            backup.LinkBehavior = System.Windows.Forms.LinkBehavior.NeverUnderline;
            logout.LinkBehavior = System.Windows.Forms.LinkBehavior.NeverUnderline;
            formvalue.Text      = "Home";
            startdate.Text      = DateTime.Now.ToString("yyyy");
            enddate.Text        = DateTime.Now.AddYears(1).ToString("yyyy");
            MaximizeBox         = false;
            value.Text          = name;
            pkid.Text           = id.ToString();
            if (this.ActiveMdiChild != null)
            {
                this.ActiveMdiChild.Close();
            }
            homein o = new homein();

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