Look at Form.AddObject() in help.
>Hi All,
> Ok I created a container class based on activex control. How can I load that class programmically on my form?
>
>This code causes an error
>loObject = newobject(passkey, MypassKey.vcx)
>
>Thanks
>MA
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer