3
Reply

MDI Form

Ask a question
Dorababu Meka

Dorababu Meka

14y
3.3k
1
Hi all i am having a small doubt i.e i am having an MDI form and 2  forms in an application..

To load the first form i have wriiten code like this

private void ShowNewForm(object sender, EventArgs e)
        {
           
            Form child = new Form1();
            // Make it a child of this MDI form before showing it.
            child.MdiParent = this;
            child.Text = "Window " + childFormNumber++;
            child.Show();
        }

This is opening my form fine. Now what i need is on this form i am having a linkbutton if i click on this i should open the second form with in the mdi only. Any idea please..


Answers (3)