this.hide();
but i want to hide this mdi form from another form
ex:
mdifrm1 ee=new mdifrm1 ();
ee.hide();
this code is not working...
I accepted and implement the answer ,
it is working but one time hide next time error because value of object 'mdi' is null,so null cannot hide
the implemented code is
mdiJewelSoft mdi = (mdiJewelSoft)this.MdiParent;
mdi.Hide();
how can repeatedly hide mdi?
I think after hide ,how it show,?
CrishPosted Apr 20, 2011, 6:25 AM
bhausaheb patilPosted Feb 11, 2014, 7:17 AM
Sam HobbsPosted Apr 20, 2011, 4:48 PM
Suthish NairPosted Apr 20, 2011, 4:20 PM
VulpesPosted Apr 20, 2011, 9:23 AM
Now, if you're hiding the MDI parent from a child, then it will hide not only the parent but the child as well. You therefore need to show it again from a different 'top level' form which isn't an MDI child.
The variable 'mdi' can only be null if you've set it to null. Even if you close or dispose of a form, it won't automatically set variables to null which refer to it.
Dinesh BeniwalPosted Apr 20, 2011, 7:48 AM
Abdu RafeeqPosted Apr 20, 2011, 7:15 AM
it is working but one time hide next time error because value of object 'mdi' is null,so null cannot hide
the implemented code is
mdiJewelSoft mdi = (mdiJewelSoft)this.MdiParent;
mdi.Hide();
how can repeatedly hide mdi?
I think after hide ,how it show,?
VulpesPosted Apr 20, 2011, 4:50 AM
Sahil JaniPosted Apr 20, 2011, 4:42 AM
Will you please aloborate your question.? Exactly, what you want to do in your MDI parent form. Your question is not clear to give responce.