I have a lookup routine that I created and compiled into a DLL. I am using this in another program as such:
Dim frm As frmSupplierLookup
frm = New frmSupplierLookup("", Database, Company)
This works fine.
What I need to be able to do is have the "frmSupplierLookup" part be a variable. For instance, sometimes it may need to be "frmCustomerLookup", which is another form in my DLL.
This will be stored in a database and be user-defined and could change in the future. So using a Select/Case statement or similar routine will not work. It must truly be generic.
How can I do this?