My situation is that I have a custom user control that I have built into a
DLL and put it on the "USER CONTROLS" part of the toolbox, so I can drag it
into a form whenever I need it.
The problem is that, for a variety of reasons, I need to "see" a variable in
all the SUBs that exist in my user control class that is defined in my
startup module of my program. Here's a code snippet:
Imports MyUserControlLibrary
Module Startup
public myGlobalArrayList as arraylist
public sub main()
.... Application.Run(Form1)
end sub
end module
I need to see myGlobalArrayList EVERYWHERE including the subs in
MyUserControlLibrary (which is a dll I built containing my custom stuff). I
tried making it a public variable (as in this example), I've tried a
separate class where I define a public shared property. But in all cases I
can see myGlobalArrayList in my application subs, but NOT in the subs within
the MyUserControlLibrary dll.
When I was testing the routines in MyUserControlLibrary I had them as the
*.VB files in my current application and everything worked fine. When I
broke them out into a separate module and compiled them into a dll they
could no longer see the variable.
Is there any way I can make myGlobalArrayList visible to the routines in the
dll library???
Thanks for any suggestions...