Dynamically load dll RRS feed

  • Question

  • In my app i need to load dll's dynamically... i dont know how many dlls are to be loaded.. should load all dll's in a particular folder and should use methods in those dlls
    thanks in advance
    Wednesday, May 13, 2009 6:11 AM


  • You will have to use reflection. You can do something like:

    Dim a as System.Reflection.Assembly = System.Reflection.Assembly.LoadFrom("assemblyName.dll")

    Gaurav Khanna
    • Proposed as answer by S. Edelmeier Wednesday, May 13, 2009 7:39 AM
    • Marked as answer by theH3llboy Thursday, May 14, 2009 10:13 AM
    Wednesday, May 13, 2009 6:33 AM

All replies