V
vb6dev
Hi,
I asked a question a few days ago that wasn't clear enough. I need to open
a form in a C# project, but I know only its name.
I guess I should look into Reflexions to do this, but it doesn't work for me
yet. I am using the following code:
string assemblyName = "WindowsApplication1";
string typeName = "WindowsApplication1.Test";
object o = Activator.CreateInstance(assemblyName, typeName, null);
((Form)o).Show();
I have a System.TypeLoadException in mscorlib.dll on line 3. What I am
missing there?
Thanks
vbdev
I asked a question a few days ago that wasn't clear enough. I need to open
a form in a C# project, but I know only its name.
I guess I should look into Reflexions to do this, but it doesn't work for me
yet. I am using the following code:
string assemblyName = "WindowsApplication1";
string typeName = "WindowsApplication1.Test";
object o = Activator.CreateInstance(assemblyName, typeName, null);
((Form)o).Show();
I have a System.TypeLoadException in mscorlib.dll on line 3. What I am
missing there?
Thanks
vbdev