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,?

CrishRank #1,487 · 1.1K reputationPosted Apr 20, 2011, 2:25 AM EDT
Sahil Jani196 reputationPosted Apr 20, 2011, 12:42 AM EDT
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.
VulpesRank #55 · 29.2K reputationPosted Apr 20, 2011, 12:50 AM EDT
Abdu Rafeeq109 reputationPosted Apr 20, 2011, 3:15 AM EDT
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,?
Dinesh BeniwalRank #9 · 64K reputationPosted Apr 20, 2011, 3:48 AM EDT
VulpesRank #55 · 29.2K reputationPosted Apr 20, 2011, 5:23 AM EDT
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.
Suthish NairRank #92 · 22.8K reputationPosted Apr 20, 2011, 12:20 PM EDT
Sam HobbsRank #107 · 20.5K reputationPosted Apr 20, 2011, 12:48 PM EDT
bhausaheb patil14 reputationPosted Feb 11, 2014, 2:17 AM EST