Thanks for the quick answer!
Unfortunately I couldn't get this to work, and according to the help, this
will create an instance of a Type.
I tried the Activator.CreateInstance(Nothing, "Auftrag") call, but I got
this exception:
A non handled exception of type 'System.TypeLoadException' occured in
mscorlib.dll.
Extra info: The type Auftrag in the assembly ..., Version=0.3.1783.15723,
Culture=neutral, PublicKeyToken=null could not be loaded.
(translated from german)
Any ideas anyone?
--
Rene Mansveld
Spider IT - Germany
www.Spider-IT.de /
www.Spider-IT.net
Please reply to the newsgroup(s)

)
"Imran Koradia" <(E-Mail Removed)> schrieb im Newsbeitrag
news:(E-Mail Removed)...
> take a look at the Activator.CreateInstance method in the
System.Reflection
> namespace.
>
> hope that helps..
> Imran.
>
> "Rene Mansveld" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> > Hi,
> >
> > how can I create an instance (object) of a class (form) if I only know
the
> > classname (VB.NET 1.0)?
> > I need to do this in a complex app where jobs consist of parts. Each
> > part's
> > data is saved in a separate database table. For the parts, the form's
> > class
> > name is saved in a data table, so that I know which form to use. As this
> > is
> > a string, I need to be able to create the form by it's name (like
> > CreateObject() does for COM objects).
> >
> > --
> > Any help gladly appreciated!
> >
> > Rene Mansveld
> > Spider IT - Germany
> > www.Spider-IT.de / www.Spider-IT.net
> >
> > Please reply to the newsgroup(s)
)
> >
> >
>
>