Hi Mike,
You may try to use the override createinstance to pass the arguments to the
contructor.
Assembly.CreateInstance Method (String, Boolean, BindingFlags, Binder,
Object[], CultureInfo, Object[])
http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfSystemReflectionAssemblyClassCreateInstanceTopic3.asp
e.g.
Dim fm As Form
fm =
System.Reflection.Assembly.LoadFrom("C:\Test\WindowsApplication3\bin\Debug\W
indowsApplication3.exe").CreateInstance("WindowsApplication3.Form1", True,
BindingFlags.CreateInstance, Nothing, New Object() {"Hello"}, Nothing,
Nothing)
fm.Show()
Best regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.