J
John Young
Hi,
I have a class (cGlobals.cs) which I create in my main form (frmMain). I
have declared a variable at the top of my frmMain class (cGlobals gVars
.
I then create an instance in my forms Load event (gVars=new cGlobals
.
Now, I can access gVars in my main form, but not from any other form. Do I
need to add anything to my cGlobals.cs file to allow all forms to access the
class? I've seen references to friend/internal etc., but am not 100% sure
on how to use them.
Thank you for any help given...
John Young
I have a class (cGlobals.cs) which I create in my main form (frmMain). I
have declared a variable at the top of my frmMain class (cGlobals gVars

I then create an instance in my forms Load event (gVars=new cGlobals

Now, I can access gVars in my main form, but not from any other form. Do I
need to add anything to my cGlobals.cs file to allow all forms to access the
class? I've seen references to friend/internal etc., but am not 100% sure
on how to use them.
Thank you for any help given...
John Young