The following works fine; passing a type to CreateInstance:
private Type _next;
BaseWizardForm nextForm = (BaseWizardForm)Activator.CreateInstance(
_next );
So why doesn't this work (error = _next' is a 'field' but is used like a
'type'):
BaseWizardForm nextForm =
(BaseWizardForm)Activator.CreateInstance<_next>();
_next *is* a type...
And this gives the error "type or namespace name 'corndog' could not be
found.":
Type corndog = typeof(WelcomeForm);
BaseWizardForm nextForm =
(BaseWizardForm)Activator.CreateInstance<corndog>( );
It gives that error on the second line...