CreateObject? In .NET?

bdani82

Member
Joined
Jun 7, 2004
Messages
22
Programming Experience
3-5
CreateObject cannot be used to create instances of classes in Visual Basic unless those classes are explicitly exposed as COM components. Is there any way to use CreateObject method or other similar methods with .Net components?

TKS
 
Why would you want to use CreateObject when you can create controls dynamically easier in .NET. Please post more on exactly what you're trying to do and maybe we can steer you towards the "better/suggested" way in .NET.
 
I'm Italian... my English is not very well... I want to use the CreateObject because in my program I don't know preventively the name of the class library to istance cause I read it from DB. Did you understand?
 
I'm not sure if I understood you correctly, but you basically want a way to create objects dynamically? If that is the case you should study up on desing-patterns, especially the "Factory" design pattern. Try doing a Google search on "Factory Design Patter"
 
Back
Top