J
Jordi Julià
Hello,
I need to create with VB2005 an instance of one of the classes of the
project in run time.
For example:
- The Namespace root and the name of the project are he himself: "Project"
- The project has including three class: Class_1.vb, Class_2.vb and
Class_3.vb
In VB2003 it did of the following way:
Dim NameClass as string ="Class_1"
Dim Ensam as Type = Type.GetType("Project" & Chr(46) & NameClass)
Dim result as Object = Activator.CreateInstance(Ensam)
As it would have to do it in VB2005?
if I execute the Type Ensam is Nothing
Thanks!
Jordi
I need to create with VB2005 an instance of one of the classes of the
project in run time.
For example:
- The Namespace root and the name of the project are he himself: "Project"
- The project has including three class: Class_1.vb, Class_2.vb and
Class_3.vb
In VB2003 it did of the following way:
Dim NameClass as string ="Class_1"
Dim Ensam as Type = Type.GetType("Project" & Chr(46) & NameClass)
Dim result as Object = Activator.CreateInstance(Ensam)
As it would have to do it in VB2005?
if I execute the Type Ensam is Nothing
Thanks!
Jordi