Hi,
Are those the name of the types(classes) ?
If so and they are declared in the same assembly you can use CreateInstance
Or just use a switch statement as suggested by the other opster.
cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Sanjay Minni" <sm*********@minisoftindia.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
Hi
I have several different types of form
e.g.
- custmaster
- prodmaster
- invoice
all inherited from different form types
How can I open any form generically
if I have the form name given as a string
(at runtime)
How can I trap an error In case the string does
not represent a form name or is of an abstract form type
Regards
Sanjay Minni
www.assetage.com