'指定URL
Dim URL As String
URL = _
"http://localhost/CodeDownLoadDemo/ModuleA.DLL"
'从指定的URL装入程序集
Dim a As [Assembly]
a = [Assembly].LoadFrom(URL)
'获得一个EmployeeForm类的引用
Dim t As Type = a.GetType("ModuleA.EmployeeForm")
'创建窗体的实例,并显示出窗体
Dim o As Object = Activator.CreateInstance(t)
o.Show()
|