How to load a form dynamically

  • Thread starter Thread starter André Moraes
  • Start date Start date
A

André Moraes

How to load a form dynamically
I want to create a function that has a parameter that it'll be the form type
name

like

function loadform(formtype as string)
dim frm

frm = new form(formtype)
loadform.show
end function
 
André
GetType supports loading from assemblies! Add the assembly name after the
class name, use the format "mynamespace.myclass, myassembly".

Something like:
Where the first MyApplication is the Root Namespace & the second
MyApplication is
the Assembly name, both are listed under the Project Property Pages,
remember to use the one for the DLL project.

Hope this helps
Jay
 
Back
Top