use project variables throughout solution

G

Guest

currently i have a solution with 8 projects.

In the Client project there is a form called ListSer i would like to use in
my Rpts project. Client is the startup project, so can't reference to it.
Is there a way to use the ListSer form in my Rpts project?

Is there a way to create global variables for the Solution? would that work?
 
R

Robbe Morris [C# MVP]

Typically you want to use a Public Shared (VB.NET) or public static (C#)
property/method.

The class is instaniated at program start up and always exists. As
long as one project contained a reference to the class with these
properties/methods, you could see them like a global variable
in Visual Basic 6.0.

--
2004 and 2005 Microsoft MVP C#
Robbe Morris
http://www.masterado.net

Earn $$$ money answering .NET Framework
messageboard posts at EggHeadCafe.com.
http://www.eggheadcafe.com/forums/merit.asp
 

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