YEAH! I got it. Not with loadlibrary (that's only for unmanged dll's), but like this:
code:
Dim hDLL As System.Reflection.Assembly
Dim hTyp As Type
Dim hMod As System.Reflection.MethodInfo
Dim obj As Object
hDLL = System.Reflection.Assembly.LoadFrom("MyVB.dll") ' dll in Application.StartupPath or use full path
hTyp = hDLL.GetType("MyVB.MyVB") ' Full class name
obj = Activator.CreateInstance(hTyp)
' The class is active ... now let's call its methods
hMod = hTyp.GetMethod("MyFunc")
Dim args(0) As Object ' Matching number of parameters
args(0) = 1
Msgbox("Returned value : " & hMod.Invoke(obj, args))
Read the whole thread about it
here
I'm wondering why it's so hard to find this...