how access a frm in project_B from project_A which contains projec

G

Guest

Project_A is the primary project. I have deployed project_A and users have
been using it for a while. I have another project -- project_B which is a
standalone application. But rather than have to deploy 2 separate projects I
was thinking of combining project_B with project_A. So I added project_B to
project_A. But I don't know how to communicate between the projects. How
can I bring up the primary form in project_b from project_A?

Do I have to use namespaces?

Thanks,
Rich
 
C

cfps.Christian

Project_A is the primary project. I have deployed project_A and users have
been using it for a while. I have another project -- project_B which is a
standalone application. But rather than have to deploy 2 separate projects I
was thinking of combining project_B with project_A. So I added project_B to
project_A. But I don't know how to communicate between the projects. How
can I bring up the primary form in project_b from project_A?

Do I have to use namespaces?

Thanks,
Rich

Add a reference to Project B from project A, once you have done that
you can import the namespace.
 
G

Guest

Thanks. I was trying Imports Project_B.custNamespace

but got a message that there were no public members. Yes there are!

I will try the Reference approach. That should do it.

Thanks.
 
P

Phill W.

Rich said:
Thanks. I was trying Imports Project_B.custNamespace
but got a message that there were no public members. Yes there are!
I will try the Reference approach. That should do it.

All "Imports" does is to save you /typing/ in your own code.

These are equivalent:

(1) Dim sMethodName as String =
System.Reflection.MethodBase.GetCurrentMethod().Name

(2) Imports System.Reflection.MethodBase

Dim sMethodName as String = GetCurrentMethod().Name

Imports doesn't "get" you anything that you didn't have before, like
access to classes and methods defined in a.n.other assembly.

For that, you /have/ to use References.

HTH,
Phill W.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top