M
Mike
I have a solution with several projects. The first being
the exe and is the MDI Parent form. I have a ton of
properties and methods that I have set up in this form to
do stuff. I have all my MDI child forms in this same
project and my project size is getting way too big. I
would like to break out the child forms into there own
projects (dll's).
Now my problem is that I can add the new project as a
reference to my ParentMDI Form, so that I can work with
the dll, but I can't do the reverse. I need to work with
properties in my MDIParent form and I can't get access to
them from my child form if it is outside of the
ParentForm's project.
I can use this.MDIParent property, but I need to cast it
to my form type I created as my Parent Form. I can't add
a reference to my child mdi project for two reasons:
A) - it complains that you can't add an exe as a
reference it must be dll.
B) - i then tried to change it into a dll, and I get the
error of "Circular Reference" when trying to add this as
a reference. Kind of the chicken and egg scenario here.
I am trying to find the most elegant way to break my
solution up into projects and dll's but still allow my
Main MDI Parent form to talk to the Child Classes and
vise versa.
Any help would be much appreciated.
Thanks
the exe and is the MDI Parent form. I have a ton of
properties and methods that I have set up in this form to
do stuff. I have all my MDI child forms in this same
project and my project size is getting way too big. I
would like to break out the child forms into there own
projects (dll's).
Now my problem is that I can add the new project as a
reference to my ParentMDI Form, so that I can work with
the dll, but I can't do the reverse. I need to work with
properties in my MDIParent form and I can't get access to
them from my child form if it is outside of the
ParentForm's project.
I can use this.MDIParent property, but I need to cast it
to my form type I created as my Parent Form. I can't add
a reference to my child mdi project for two reasons:
A) - it complains that you can't add an exe as a
reference it must be dll.
B) - i then tried to change it into a dll, and I get the
error of "Circular Reference" when trying to add this as
a reference. Kind of the chicken and egg scenario here.
I am trying to find the most elegant way to break my
solution up into projects and dll's but still allow my
Main MDI Parent form to talk to the Child Classes and
vise versa.
Any help would be much appreciated.
Thanks