E
escamoteur
Hi,
a strange behaviour. I Developed a Custom Task Pane and want to be it visible when the user moves to a certain folder.
This works fine:
private void InitGlobalEvents()
{
Application.ActiveExplorer().BeforeFolderSwitch += new
Microsoft.Office.Interop.Outlook.ExplorerEvents_10_BeforeFolderSwitchEventHandler(Explorer_BeforeFolderSwitch);
}
Here is the handler:
void Explorer_BeforeFolderSwitch(object NewFolder, ref bool Cancel)
{
Cancel = false;
Outlook.Folder newFolder = (Outlook.Folder)NewFolder;
if (newFolder.EntryID == Config.boFolder.EntryID)
{
BO_SummeryPane.Visible = true;
}
else
{
BO_SummeryPane.Visible = false;
}
}
BUT after I resize the Custom Task Pane once, my Eventhandler no longer gets called.
Any idea? (Outlook 2007, C#, COM-AddIn)
Best
Tom
a strange behaviour. I Developed a Custom Task Pane and want to be it visible when the user moves to a certain folder.
This works fine:
private void InitGlobalEvents()
{
Application.ActiveExplorer().BeforeFolderSwitch += new
Microsoft.Office.Interop.Outlook.ExplorerEvents_10_BeforeFolderSwitchEventHandler(Explorer_BeforeFolderSwitch);
}
Here is the handler:
void Explorer_BeforeFolderSwitch(object NewFolder, ref bool Cancel)
{
Cancel = false;
Outlook.Folder newFolder = (Outlook.Folder)NewFolder;
if (newFolder.EntryID == Config.boFolder.EntryID)
{
BO_SummeryPane.Visible = true;
}
else
{
BO_SummeryPane.Visible = false;
}
}
BUT after I resize the Custom Task Pane once, my Eventhandler no longer gets called.
Any idea? (Outlook 2007, C#, COM-AddIn)
Best
Tom