Imports System.Reflection
Imports System.Activator
Public Class Form1
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim dllPath As String = "DLL名称"
’导入DLL
Dim a As Assembly = Assembly.LoadFrom(dllPath)
Dim key As String = "命名空间" + "." + "类名"
'获取类的类型
Dim b As Type = a.GetType(key)
‘根据获取的类生成这个类的一个实例
Dim c As Object = Activator.CreateInstance(b)
Dim methodname As String = "方法名"
’根据获取的类,得到指定方法的信息