VB: Instantiate class by name as string?

  • Thread starter Thread starter GKG
  • Start date Start date
G

GKG

Can i somehow instantiate classes only knowing their
names and that their constructors have no parameters?
 
GKG said:
Can i somehow instantiate classes only knowing their
names and that their constructors have no parameters?

Have a look at Activator.CreateInstance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top