How do you get a Public Sub in a module to be seen in an UserControl. I need a module to write a sub that would be called with "AddressOf". The problem is that the UserControl doesn't seem to see the module. Any ideas?
Printable View
How do you get a Public Sub in a module to be seen in an UserControl. I need a module to write a sub that would be called with "AddressOf". The problem is that the UserControl doesn't seem to see the module. Any ideas?
is the module in the same ocx as the usercontrol?
if you made an ocx and the module is in your main code
then you wont have default access to the functions..(you
might be able to from Usercontrol.Parent. but even if
it worked thats not a good way to go.)
if the module is compiled into the same ocx as the
usercontrol you shouldnt have a problem with accessing
its functions/subs
one other thought i just had, is if the module is in the same
ocx but intellisense wont work with the module or if it wont
autocomplete, that can happen when you have some kinds of
errors in your module code.
the following type declaration would cause such an error
Public Type i
print As Integer
for As Long
End Type
print and for are reserved words, but in the type declare, they
dont turn red, but you have now lost intellisense for the entire
library they are in. I forget other examples where I have had this happen...I think there is another situation it does in too though