Click here to Skip to main content
15,894,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I Create Mdi Parent form and I Call Mdi parent Inside of Mdi Child Form at i give some String input on Child Form.How Can i Pass String Values Child to Parent Form. I need Pass Only Values But Not Parent Form Load Event.
C#
//Parent MAIN FORM
        private void othersToolStripMenuItem_Click(object sender, EventArgs e)
        {
          
            OthersFrm other = new OthersFrm();
            other.MdiParent = this;
            other.StartPosition = FormStartPosition.Manual;
           // other.Size = this.ClientSize;
            other.Location = new System.Drawing.Point(134, 52);
            //other.Size = new System.Drawing.Size(784, 529);
            other.Show();
        }
C#
//Child OTHERS Form

        private void btnsave_Click(object sender, EventArgs e)
        {
            //objDO.proc = textBox9.Text;
            objDO.compan = txtFCdesc.Text;
            this.Hide();
            MAIN ma = new MAIN();
            // ma.MdiParent = this;
            ma.Show();
        }
Posted

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900