how to access mdi child
-
i have a number of child forms within a parent mdi now i want access current child form from the mdi form. i have created one prototype for the child form and then declared an array of forms in mdi's Load event and loaded them in a mdi menu's click event
-
i have a number of child forms within a parent mdi now i want access current child form from the mdi form. i have created one prototype for the child form and then declared an array of forms in mdi's Load event and loaded them in a mdi menu's click event
Hi, Dim CurrentChild As Form = Me.ActiveMDIChild hope this helps :)
NajiCo http://www.InsideVB.NET[^] It's nice 2b important, but it's more important 2b nice...
-
i have a number of child forms within a parent mdi now i want access current child form from the mdi form. i have created one prototype for the child form and then declared an array of forms in mdi's Load event and loaded them in a mdi menu's click event
if u take mdi form then for child control u can take a contextmenustrip in tooltip. then the form .then u write the name. and double click and write dim frm as new formname frm.showdialog this is the only coding
-
Hi, Dim CurrentChild As Form = Me.ActiveMDIChild hope this helps :)
NajiCo http://www.InsideVB.NET[^] It's nice 2b important, but it's more important 2b nice...
Hi, thanks for ur help but i have one more problem i have 2 forms, frmtools and frmpad i have created 10 instances of frmpad and loaded them on mdi's load event now i want to do the required operations only if the CurrentChild is any of the instances of frmpad. if the CurrentChild is frmtools then nothing should happen for that i have set the tag property of frmpad to "yes" and the tag property of frmtools to "no" and written the following:
if Me.ActiveMDIChild.tag = "yes" then dim a as frmpad = me.ActiveMDIChild
it works also. but, i don't know the use of tag property. will there be any problems due to the change of tag property or there any other way to achieve this. -
if u take mdi form then for child control u can take a contextmenustrip in tooltip. then the form .then u write the name. and double click and write dim frm as new formname frm.showdialog this is the only coding
i can't understand u. will u be more descriptive and one important thing is i am new to vb.net