Maarten,
In .NET 2.0, you can add a reference to an EXE and use the types that
are in that. However, this won't work for you, because unless you loaded
your child form dynamically...
What you can do is define an abstract class in another assembly, one
which derives from Form that exposes the methods you want to call. Then, in
your EXE, you can derive your form from that class.
Your assembly with the child form then references the other assembly
with the abstract class. You then can get the parent form easily, and cast
to your abstract class.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Maarten" <gu******@hotmail.com> wrote in message
news:43**********************@news.skynet.be...
I'm gonne try to explain my problem here
I have a classe named Save_open_forms.
I want to call this clas from the mainform (an mdiparrentform).
this is working fine.
now on the class(Save_open_forms) i want to determine witch form is open
and
what the name of the form is.
i know how to do this on the parentform itselve, but i can't do this from
the class becouse i can't add a reference to the form.
When i try that i get an error the the reference must be from the type of
dll.
is there a way to do this?