VB.NET Access sub or function between projects in a solution

I have a VB.NET 2008 solution that has multiple projects in it.  I need to be able to call a sub that resides in Project A from Project B.  I also need to be able to pass a string to that sub in Project A when I call it from Project B.

Is this possible?  Hopefully it makes sense.  Thanks for the suggestions.
JasonJasonJasonJasonAsked:
Who is Participating?
 
Paul JacksonConnect With a Mentor Software EngineerCommented:
Have a look at this article it should help : http://visualbasic.about.com/od/usingvbnet/l/aa080703a.htm
0
 
Paul JacksonSoftware EngineerCommented:
What types of projects are these ?
Usually you would just add a reference to project B from Project A.
Then you would call the sub in thee same way as function but adding the project name and possibly class name infrom of the function/subname i.e.

projectb.classa.suba()

you can obviously pass parameters into this function call in the same way as for a normal function call.
0
 
JasonJasonJasonJasonAuthor Commented:
i added the reference to the project a from project b.  

In project B when i type projecta.form1. it does not list the subs.

do you know why it would do this?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.