
Signature
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
Yep, I am able to do that as a walkaround, but I'd love to understand what
is happening, why am I abnle to access from other places and not from a
form. I have little COM knowledge, but I thought it could be because of
accessing the COM object from a form. Makes sense?
Thanks a lot!
Pablo
> You could set up a public object or method in the form and pass the
> Session object (NameSpace) to it when you create the form.
[quoted text clipped - 15 lines]
>> Thanks to all!
>> Pablo
Ken Slovak - [MVP - Outlook] - 10 Jan 2007 20:14 GMT
I'm not sure, I don't know enough of the plumbing under the hood in VSTO or
the Interop to really be sure. In VB.NET you can set up global Application
and NameSpace objects and reference them from anywhere in your code,
including form code but of course C# has different scope rules and nothing
like true globals as VB.NET does.

Signature
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
> Yep, I am able to do that as a walkaround, but I'd love to understand what
> is happening, why am I abnle to access from other places and not from a
[quoted text clipped - 3 lines]
> Thanks a lot!
> Pablo