VB.NET - Calling a function from a Class in a different Solution

krinpit

Active member
Joined
Jul 31, 2003
Messages
33
Location
Dublin
Hi - I dont know how complex this particular question is, but here goes.

I have 2 solutions -
(PROJECT1) which monitors a mailbox and does processing on files as soon as they come in
(PROJECT2) which contains other classes and is used by users on a daily basis.

Basically, as soon as a certain email comes in, I want to call function PROJECT2.MYCLASS.MYFUNCTION() from PROJECT1.

Is this possible?

Thanks, John.
 
If project2 compiles to a classlibrary (DLL) then you can add a reference to project2 from project1 - you should then be able to access project2s public functionality.
 
Back
Top