Oh, ic: ProjectA is an executable (exe). No problem, in that case, I would
suggest to put the common functionality in a new project e.g. ProjectCommon,
and then add a reference from ProjectA and ProjectB to projectCommon. The
type of ProjectCommon should be Class Library (dll).
--
Greetz,
Jan
__________________________________
Read my weblog:
http://weblogs.asp.net/jan
"Quy nguyen" <qu********@yahoo.com> schreef in bericht
news:01****************************@phx.gbl...
I get an error say "An assembly must have a 'dll'
extension in order to be referenced."
-----Original Message-----
You need to add a reference from ProjectB to ProjectA.
Then you can useeverything that is declared as Public from ProjectA. You
can do this byright clicking on the ProjectB node in the Solution
Explorer window, thenchoose Add Reference. In the dialog box choose the
Projects tab and selectProjectA.
--
Greetz,
Jan
__________________________________
Read my weblog: http://weblogs.asp.net/jan
"Quy Nguyen" <an*******@discussions.microsoft.com>
schreef in berichtnews:0a****************************@phx.gbl... How do I share a function/form in two projects in a
solution?
Solution1
ProjectA
FormX (need in both projects)
ModuleX
ProjectB
FormY (will call FormX in ProjectA)
ModuleY (will call ModuleX in projectA)
Thank you
.