Create class based on a form and drop both controls on it. You don't have to make form visible to access controls.
>>See
BUG: License Error with ActiveX Control Added at Run-Time mskb #
Q192693>
>Doesn't work for me I created the OLE Containers as suggested and used the following code to instantiate them
>
>
loSession = CREATEOBJECT("oleMAPISession")
>...
>loMessages = CREATEOBJECT("oleMAPIMEssages")
>
>Also tried to used NEWOBJECT() yet I get the error:
>Error: 1435
>Message: Object class is invalid for this container
>
>I had tried to use OLE Bound Control instead but I was not able to drop the MAPIs onto it.
>
>Please advise.
--sb--