Instantiating classes at runtime

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Tell me guys how to instantiate a class at runtime given the assembly DLL
file and the class name ?
Thanx in advance ..
 
Mr. Morad Jamal said:
Tell me guys how to instantiate a class at runtime given the assembly DLL
file and the class name ?

'Assembly.LoadFrom' + 'Activator.CreateInstance'.
 
Mr. Morad Jamal said:
Thanx Herfried, but can you explain your statement more ?? I'd appreciate
it..

\\\
Dim o As Object = _
Activator.CreateInstance(<assembly name>, <type name>)
///
 

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