question about vsto-outlook

D

David82

i'm studying now from the book "vsto for mere mortals" how to develop outlook
application. the problem is that some methods that the ThisAddIn class
should know by the book are not known in my code.
here are some of them:
Me.CreateItem
Me.ActiveExplorer()

the book is using visual studio 2005 and i'm using visual studio 2008. but
i don't think it's the reason.

anyone knows how to make it work?

thanks in advance
David
 
K

Ken Slovak - [MVP - Outlook]

Is that book for VSTO 2005 or VSTO 2005 SE?

In VSTO 2005 SE you can't use Me.CreateItem because Me no longer is
Outlook.Application. Instead you use Me.Application.CreateItem or assign an
Outlook.Application object to Me.Application and use that.

Do you get Intellisense showing Me.CreateItem or Me.ActiveExplorer is valid?
Does Intellisense show Me.Application.CreateItem and
Me.Application.ActiveExplorer?
 
D

David82

great! it works now.
i guess i have VSTO 2005 SE. i didn't even know there was a different
between them.
anyway i did what you said and it works now.

thanks alot
David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top