PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming NewExplorer Event in a C# add-in

Reply

NewExplorer Event in a C# add-in

 
Thread Tools Rate Thread
Old 07-03-2005, 09:39 PM   #1
=?Utf-8?B?SW5iYXI=?=
Guest
 
Posts: n/a
Default NewExplorer Event in a C# add-in


I'm writing an add-in in C# for Outlook 2003 (SP1) and using the default PIA.
I’m getting a NullReferenceException with the message "Object reference not
set to an instance of an object.” when running the following code:

applicationObject.Explorers.NewExplorer += new
Microsoft.Office.Interop.Outlook.ExplorersEvents_NewExplorerEventHandler(Explorers_NewExplorer);

The Explorers event is just fine. Any ideas about this?


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off