I'm having the same trouble here.
I'm using an MDI application that has around four or five childres. Each child window is oppened via a toolStrip bar. This bar has four buttons, and each button opens each child.
What I want to achieve is that if certain child is open (let's say customers), I don't want the user to open the rest of the childs until they close the customers child window.
I tried disabling each toolStrip button from the parent form, at the moment it loads it child, but then I don't have a way to reenable the disabled toolStrip button from the child form, only the parent form can do it.
I tried something like this, and it worked, but I don't like it.
Code:
FormChildIVA formChildy = FormHijoIVA.GetIVAinstance;
formChildy.Close();
GetIVAinstance is a property I made to get an instance of the FormChildIVA form.
I could do this for every child, but I prefer to disable the toolStrip buttons in the parent form. Easier for the user to understand and (I think) easier to program.
What are your suggestions?