F
Frenchy
Hello,
I developped a COM add-in (Extenssibility project C# VS 2003)
I'd like this add-in to work only with Word, not with Outlook.
I succeed disabling it when I launch Outlook, then creating a new mail.
My add-in is a CommandBar, which I add on the Application_DocumentChange()
event.
So to disable it with outlook, I check this;
if(appWord.ActiveWindow.EnvelopeVisible == false)
{
//Word and NOT Word Mail Editor
}
OK it works fine, but there's a problem, when the user use word, then click
on the envelope icon, my add-in is still there...but I don't want to
I'd like to disable the CommandBar if the user click that envelop icon, but
there's no event...
Any idea?
Thanks,
Frenchy
I developped a COM add-in (Extenssibility project C# VS 2003)
I'd like this add-in to work only with Word, not with Outlook.
I succeed disabling it when I launch Outlook, then creating a new mail.
My add-in is a CommandBar, which I add on the Application_DocumentChange()
event.
So to disable it with outlook, I check this;
if(appWord.ActiveWindow.EnvelopeVisible == false)
{
//Word and NOT Word Mail Editor
}
OK it works fine, but there's a problem, when the user use word, then click
on the envelope icon, my add-in is still there...but I don't want to
I'd like to disable the CommandBar if the user click that envelop icon, but
there's no event...
Any idea?
Thanks,
Frenchy