Dorababu Meka

Dorababu Meka

  • 207
  • 8.3k
  • 1.7m

MDI Form

Jun 20 2010 6:39 AM
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)