Joel,
unfortunately that's not possible with visual classes, but if you don't have to expose too many methods and properties you could create a programmatic wrapper class of type session, for example.
Armin
>Is there a way to strongly type the return value of a method (for COM) when using visual classes (.vcx)? I see how with the DEFINE CLASS command, but I can't find how to do it with .vcx classes.
>
>Thanks.