A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

nameSpace.OptionsPagesAdd



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old May 11th 06, 09:36 PM posted to microsoft.public.outlook.program_addins
Ralf Jansen
external usenet poster
 
Posts: 4
Default nameSpace.OptionsPagesAdd

I'm trying to handle the nameSpace.OptionsPagesAdd event to show a custom property page for a
folder. see code below.
Problem may eventhandler is only called the first time i open the option dialog for a folder and
then never again as if my EventHandler has been detached.
What did i miss?


private void ThisApplication_Startup(object sender, System.EventArgs e)
{
Outlook.NameSpace nameSpace = this.GetNamespace("MAPI");
nameSpace.OptionsPagesAdd += new
Outlook.NameSpaceEvents_OptionsPagesAddEventHandle r(nameSpace_OptionsPagesAdd);
}

private void nameSpace_OptionsPagesAdd(Microsoft.Office.Interop .Outlook.PropertyPages
Pages, Microsoft.Office.Interop.Outlook.MAPIFolder Folder)
{
Pages.Add(_mailStoreFolderPropertyPage, "MailStore");
}


Ralf
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
GetItemFromID method on a public folder in the namespace Robert Squire Outlook and VBA 1 February 24th 06 02:31 PM


All times are GMT +1. The time now is 11:23 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.