Loading modules (.dll) dynamically in VB.Net 2005
Posted on 2007-12-04
i'm wondering if it is possible (and how) to dynamically load pieces of my program.
I'd like to create different parts of my program and compile them as dll's. Then my main program will load the dll's that it finds in a folder.
in my .\Plugins folder I have the following:
(each of them is part of a GUI - with interfaces to access a Panel, MenuItem, and TreeNode)
when my program loads, it will look in .\Plugins and load each of the dlls it finds (each one will have the same entry format)
on an update i add Ledger.dll to the .\Plugins folder, and the next time the program runs, it loads Ledger.dll also.
can this be done? or do i need to hard-code the declarations?