Hi,
Just add
using System.Windows.Form;
you should have it already , but just in case.
you only use Activator to load a type at runtime, usually when you do not
know the real type at compile time, so you wait until runtime to decide
which exact typoe you want ot use.
cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Wayne" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> If I wanted to create an instance of a System.Windows.Forms.Button how
> would
> I go about doing this? I know if I specify the path to the DLL as the
> first
> param, and the qualified name as the second all works well, but the DLL is
> in the gac, is there any way to get Activator.CreateInstanceFrom to use
> the
> GAC to find the DLL? and if so how do you specify the version? (or is that
> why you wouldn't be able to use the gac?)
>
> --
> Thanks
> Wayne Sepega
> Jacksonville, Fl
>
>
> "When a man sits with a pretty girl for an hour, it seems like a minute.
> But
> let him sit on a hot stove for a minute and it's longer than any hour.
> That's relativity." - Albert Einstein
>
>
|