load a form by its name?

  • Thread starter Thread starter Tomer
  • Start date Start date
T

Tomer

Hi,

I'm trying to load a certain form by giving the name of the form.
for example:

loadForm("LoginForm");

I've though of using the assembly method load/loadfrom but I don't know
exactly how to use it, and I couldn't find any helpfull info on the net.

Thanks in advanced!
Tomer.
 
I'm not an expert (in fact, i'm a beginner) , but i think that this is the
same an it does work:

Dim MyForm As New FormName
MyForm.Show()

I hope that it helps you.
 
You can do this by using 'reflection' to search thru the loaded
'assemblies' for a form with the given name. I'm afraid I haven't got
an example to hand, but this should point you in the direction for a
few more searches.

Chris
 
Back
Top