how To make a mdi form? [modified]
-
Hi All,
i m using the following code but this code is write on mdi form
any can give code to write on the child form.
Stock childform = null; foreach (Form f in this.MdiChildren) { if (f is Stock) { childform = (Stock)f; break; } } if (childform == null) { childform = new Stock(); childform.MdiParent = this; childform.StartPosition = FormStartPosition.CenterScreen; childform.sStock = sMdi; childform.Show(); childform.Focus(); } else { childform.Show(); childform.Focus(); }
i all ready have a mdiparent with many children they all are working well. now i want to create a new form which is displayed wen the one of child form is clicked and i want this new form as a child. -- modified at 5:04 Thursday 26th July, 2007
Nikesh Kr. Yadav CSS Infotech Sec- 31 Gurgaon, Haryana(India)
-
Hi All,
i m using the following code but this code is write on mdi form
any can give code to write on the child form.
Stock childform = null; foreach (Form f in this.MdiChildren) { if (f is Stock) { childform = (Stock)f; break; } } if (childform == null) { childform = new Stock(); childform.MdiParent = this; childform.StartPosition = FormStartPosition.CenterScreen; childform.sStock = sMdi; childform.Show(); childform.Focus(); } else { childform.Show(); childform.Focus(); }
i all ready have a mdiparent with many children they all are working well. now i want to create a new form which is displayed wen the one of child form is clicked and i want this new form as a child. -- modified at 5:04 Thursday 26th July, 2007
Nikesh Kr. Yadav CSS Infotech Sec- 31 Gurgaon, Haryana(India)
make yo:)ur child as a IsMdiContainer as true , it will become mdi child Ashish Kasma
-
make yo:)ur child as a IsMdiContainer as true , it will become mdi child Ashish Kasma
Thankx for reply,But its not the solution. there is a particular code is use for this because i all ready have a mdiparent with many children they all are working well. now i want to create a new form which is displayed wen the one of child form is clicked and i want this new form as a child.
Nikesh Kr. Yadav CSS Infotech Sec- 31 Gurgaon, Haryana(India)
-
Thankx for reply,But its not the solution. there is a particular code is use for this because i all ready have a mdiparent with many children they all are working well. now i want to create a new form which is displayed wen the one of child form is clicked and i want this new form as a child.
Nikesh Kr. Yadav CSS Infotech Sec- 31 Gurgaon, Haryana(India)
dear what you need is not clear ,:confused: because ur subject says you want to "make a mdi form?":sigh: please elaborate in more detail. :)