How to call in a major project other added as a reference in C #?

I have several designs and want to make a form with buttons and call them. Searching saw that I can do this by adding another project as a reference, but I could just add one, could not all. How do after you add the project as reference? As you call it via a button?

Is a UDP client and server with, both screens are different projects in Console. With WindowsForm screens I have an RPC and TCP, both are also different projects. None of these projects are web, are executable.
OSBarbosaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

it_saigeDeveloperCommented:
If I am understanding your question properly, you want to know how you can call functions from a referenced assembly?  If this is what you are after, then you need to understand a couple of things (trying to keep this very basic).

First, is Pathing - It is called this because it resembles a path.  The path is essentially defined as such Assembly --> Namespace --> Class --> Method/Property.  The Assembly portion of the path is satisfied by the reference.  After which you would specify a namespace (or multiple).  Once you have specified the namespace(s), then you can instantiate the class (so long as it is visible to your calling code), if needed.  Once you have access to the class, you can then access any visible members of the class (methods, properties, etc.).

The second, is visibility.  Visibility is what determines how a class/method/variable/property can be accessed with public being the least restrictive and private being the most restrictive.  The visibility definitions are:
public - The type or member can be accessed by any other code in the same assembly or another assembly that references it.
protected - The type or member can be accessed only by code in the same class or struct, or in a class that is derived from that class.
protected internal - The type or member can be accessed by any code in the assembly in which it is declared, or from within a derived class in another assembly. Access from another assembly must take place within a class declaration that derives from the class in which the protected internal element is declared, and it must take place through an instance of the derived class type.
internal - The type or member can be accessed by any code in the same assembly, but not from another assembly.
private - The type or member can be accessed only by code in the same class or struct.
Source

Knowing this, what you would do after you add the reference to the project is access it's members by way of the Namespace that is defined in the project:Object browser view of two separate projects.  Project2 is referenced by Project1.Note that IAmAProject2PublicClass is the only *visible* method for me to instantiate.-saige-
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
it_saigeDeveloperCommented:
The author wanted to know how to reference members from another project/assembly.  I showed the author that it was possible and provided clarifying information to that affect.

https:#a40772840

-saige-
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.