RE
reinier
March 25, 2004 06:19 PM UTC
( I will simplifie things, without changing the essance of the problem)
The bottomline of the problem is this:
The problem is that I cannot change any property of
any control on the Parent-form, from a clild-form (named frmForm2) wich is closing
I have created a Parentform, named frmMDI.
On the Parent there are buttons and panels.
With these buttons:
-a childform (frmForm2) is opened,
-buttons/panels are made invisible on the Parentform.
On the Child form there is also a ''close'' button,
with this close button: the child form is closed.
Problem:
When the closebutton is used, and the childform is CLOSING,
I cannot access any of the buttons or panels or any other control,
on the parent form.
IN other words, I only see a darkgrey PArentform on my screen,
without buttons.
How can I make the buttons on the PArentform visible, without
making a new instance?
Does this make things clear?
Regards,
SG
Steve Graddy
March 26, 2004 09:37 AM UTC
I access items on the MDI parent (frmMDI) form from the child (frmChild) form with the following statement within the child form:
((frmMDI)this.Parent.Parent).SomePublicProperty = false;
What ever property or control you are trying to access will have to be made public.