Ok, I was able to find and call a function. Question. Is there a way to directly invoke my function "Test" instead of For Each'ing through the entire dll?
Dim assem As System.Reflection.Assembly =System.Reflection.Assembly.LoadFrom("myplugin.dll")
Dim ty As Type = assem.GetType("myPlugin.frmMain")
Dim class1 As Object = Activator.CreateInstance(ty)
Dim strMsg As String
Dim myMember() As System.Reflection.MethodInfo = class1.GetType.GetMethods()
For Each member As System.Reflection.MethodInfo In myMember
If member.Name = "Test" Then
strMsg = member.Invoke(Nothing, Nothing, Nothing, Nothing, Nothing)
Exit For
End If
Next