Exemplo n.º 1
0
        private void changePasswordToolStripMenuItem_Click_1(object sender, EventArgs e)
        {
            change_password frm = new change_password();

            frm.MdiParent = this;
            frm.Show();
        }
Exemplo n.º 2
0
        private void btnChange_Click(object sender, EventArgs e)
        {
            panelMDI.Controls.Clear();
            panelMDI.Visible = true;
            change_password change = new change_password();

            change.TopLevel   = false;
            change.AutoScroll = true;
            panelMDI.Controls.Add(change);
            change.Dock = DockStyle.Fill;
            change.Show();

            pictureBox1.Visible = true;
            pictureBox1.Height  = btnChange.Height;
            pictureBox1.Top     = btnChange.Top;
        }