C
Chris Gilbert
Right, I think that this is a tricky one but I'm hoping someone is
going to tell me it's not.
The application I am writing has a substantial number of forms spread
around various VB.NET dlls. They are displayed within a tab control
on the main form which is in the exe. The opening and closing of
these forms is handled by the main form to enable the tracking of
their status and the creation and deletion of tab pages. When a new
form is opened the type of the form is passed to the main form which
late binds to it (using Activator).
The problem is that say that I have 3 forms open; forms A, B and C.
Forms A and B display information that can be changed in form C but
they are unaware that it exists, A and B may also be in separate
Assemblies. When form C is saved forms A and B need to be made aware
that this has happened so that they can take the necessary action.
There must be a way to do this using events or delegates but I can't
work it out. Maybe form C raises some sort of shared event which A
and B can subscribe to. Can anyone out there help?
Cheers,
Chris
going to tell me it's not.
The application I am writing has a substantial number of forms spread
around various VB.NET dlls. They are displayed within a tab control
on the main form which is in the exe. The opening and closing of
these forms is handled by the main form to enable the tracking of
their status and the creation and deletion of tab pages. When a new
form is opened the type of the form is passed to the main form which
late binds to it (using Activator).
The problem is that say that I have 3 forms open; forms A, B and C.
Forms A and B display information that can be changed in form C but
they are unaware that it exists, A and B may also be in separate
Assemblies. When form C is saved forms A and B need to be made aware
that this has happened so that they can take the necessary action.
There must be a way to do this using events or delegates but I can't
work it out. Maybe form C raises some sort of shared event which A
and B can subscribe to. Can anyone out there help?
Cheers,
Chris