G
Guest
Help! Another newbie question I'm afraid. I have a toolbar on an MDI form,
which I can control OK to produce a child form. When the child form is
active, the appropriate MDI parent form toolbar button properties are set as
follows: .pushed=true and .enabled=false.
My problem is how do I set the reverse conditions when I close this child
form? I have tried putting (in the Exit button click event)
Toolbar1.Buttons(6).Pushed=False
Toolbar1.Buttons(6).Enabled=True
but get a syntax error saying that 'name Toolbar1 is not declared.'
and even
MDIParentFormname.Toolbar1.Buttons(6).Pushed=False
MDIParentFormname.Toolbar1.Buttons(6).Enabled=True
gives me a syntax error 'Reference to a non-shared member requires an object
fererence'.
How and where can I refer to the parent form toolbar within the child so
that I can change its properties? Many thanks for any help/advice given.
which I can control OK to produce a child form. When the child form is
active, the appropriate MDI parent form toolbar button properties are set as
follows: .pushed=true and .enabled=false.
My problem is how do I set the reverse conditions when I close this child
form? I have tried putting (in the Exit button click event)
Toolbar1.Buttons(6).Pushed=False
Toolbar1.Buttons(6).Enabled=True
but get a syntax error saying that 'name Toolbar1 is not declared.'
and even
MDIParentFormname.Toolbar1.Buttons(6).Pushed=False
MDIParentFormname.Toolbar1.Buttons(6).Enabled=True
gives me a syntax error 'Reference to a non-shared member requires an object
fererence'.
How and where can I refer to the parent form toolbar within the child so
that I can change its properties? Many thanks for any help/advice given.