R
Ralf Jansen
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_OptionsPagesAddEventHandler(nameSpace_OptionsPagesAdd);
}
private void nameSpace_OptionsPagesAdd(Microsoft.Office.Interop.Outlook.PropertyPages
Pages, Microsoft.Office.Interop.Outlook.MAPIFolder Folder)
{
Pages.Add(_mailStoreFolderPropertyPage, "MailStore");
}
Ralf
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_OptionsPagesAddEventHandler(nameSpace_OptionsPagesAdd);
}
private void nameSpace_OptionsPagesAdd(Microsoft.Office.Interop.Outlook.PropertyPages
Pages, Microsoft.Office.Interop.Outlook.MAPIFolder Folder)
{
Pages.Add(_mailStoreFolderPropertyPage, "MailStore");
}
Ralf