Re: Opening form from another .NET windows project by Metallikanz!
Metallikanz!
Sat Aug 20 01:09:02 CDT 2005
This is a multi-part message in MIME format.
------=_NextPart_000_0099_01C5A57B.C36984C0
Content-Type: text/plain;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
Since your gonna have multiple assemblies for each of your modules, I =
would have implemented each project as a class library and would have =
created one very simple host, which runs transparently in the =
background, which when passed an assembly and type name would =
instantiate the type using reflection and start executing it. This would =
also solve your problem of not being able to refer exe files for your =
other assemblies.
HTH, Metallikanz!
"Vijay" <vijay@infosysusa.com> wrote in message =
news:uN5J0A1oFHA.2720@TK2MSFTNGP10.phx.gbl...
> Hi,
>=20
> We are planning to design separate C# windows project for each module. =
We
> need to access(open) some forms from other project for better =
integration.
> Since we cannot add the other exe project as refereces to current =
project,
> how can we open the forms from other project?
>=20
> Thanks,
> Vijay
>=20
>=20
>
------=_NextPart_000_0099_01C5A57B.C36984C0
Content-Type: text/html;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dwindows-1252">
<META content=3D"MSHTML 6.00.2900.2722" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT color=3D#000080></FONT><FONT color=3D#000080>Since your gonna =
have=20
multiple assemblies for each of your modules, I would have implemented =
each=20
project as a class library and would have created one very simple host, =
which=20
runs transparently in the background, which when passed an assembly =
and=20
type name would instantiate the type using reflection and =
start=20
executing it. This would also solve your problem of not being able to =
refer exe=20
files for your other assemblies.</FONT></DIV>
<DIV><FONT color=3D#000080></FONT> </DIV>
<DIV><FONT color=3D#000080>HTH, Metallikanz!</FONT></DIV>
<DIV><FONT color=3D#000080></FONT> </DIV>
<DIV><FONT color=3D#000080></FONT> </DIV>
<DIV><FONT color=3D#000080>"Vijay" <</FONT><A=20
href=3D"mailto:vijay@infosysusa.com"><FONT=20
color=3D#000080>vijay@infosysusa.com</FONT></A><FONT =
color=3D#000080>> wrote in=20
message </FONT><A =
href=3D"news:uN5J0A1oFHA.2720@TK2MSFTNGP10.phx.gbl"><FONT=20
color=3D#000080>news:uN5J0A1oFHA.2720@TK2MSFTNGP10.phx.gbl</FONT></A><FON=
T=20
color=3D#000080>...</FONT></DIV><FONT color=3D#000080>> Hi,<BR>> =
<BR>> We=20
are planning to design separate C# windows project for each module. =
We<BR>>=20
need to access(open) some forms from other project for better=20
integration.<BR>> Since we cannot add the other exe project as =
refereces=20
to current project,<BR>> how can we open the forms from other=20
project?<BR>> <BR>> Thanks,<BR>> Vijay<BR>> <BR>>=20
<BR>></FONT></BODY></HTML>
------=_NextPart_000_0099_01C5A57B.C36984C0--