My Solution hold 2 Projects :
the first one : basically a login system where the user login
I have a var that hold the id of the actual connected user :
public static int UserID;
User_info.UserID = Convert.ToInt32(Table.Rows);
User_info.UserName = Table.Rows.ToString();
User_info.Password = Table.Rows.ToString();
User_info.Email = Table.Rows.ToString();
User_info.Pack = Convert.ToInt32(Table.Rows);
MessageBox.Show("" + User_info.UserID);
private int UserID = User_info.UserID;
When you reference "Project 1" in "Project 2" and put
using Bufferz_Server.Network___Acces; in it, you actually just import code from "Project 1".
You do that to reuse code from other pojects (Usually .dll's).
Afterwards your "Project 2" depends on "Project 1".
This is just for reusing code! The projects share no memory at all.
So no variables that come from the process of "Project 1" will ever reach the process of "Project 2" unless you specificly tell "Project 2" or do some kind of memory sharing.
You could use some sort of communication as for example TCP/UDP sockets to send your stuff over to the other process.
You can use Memory Mapped Files here is a guide for that.
I recommend you the latter.