G
Gloup
Hello,
I have an Outlook 2003 addin made with VS 2003 in C#. I have a problem with
the OnBeginShutdown event. In many example on web you can see something
like:
public void OnBeginShutdown(ref System.Array custom)
{
this.toolbarButton.Delete(System.Reflection.Missing.Value);
this.toolbarButton = null;
}
but if you use try / catch with this code, there is an error, toolbarButton
no longer exists.
I've tried to get my toolbarButton with:
toolbarButton=applicationObject.ActiveExplorer().CommandBars["Standard"].Fin
dControl(......)
but in OnBeginShutdown I've no explorers, applicationObject.Explorers.Count
= 0 !!
How can I delete my button ?
Thanks
JLE
I have an Outlook 2003 addin made with VS 2003 in C#. I have a problem with
the OnBeginShutdown event. In many example on web you can see something
like:
public void OnBeginShutdown(ref System.Array custom)
{
this.toolbarButton.Delete(System.Reflection.Missing.Value);
this.toolbarButton = null;
}
but if you use try / catch with this code, there is an error, toolbarButton
no longer exists.
I've tried to get my toolbarButton with:
toolbarButton=applicationObject.ActiveExplorer().CommandBars["Standard"].Fin
dControl(......)
but in OnBeginShutdown I've no explorers, applicationObject.Explorers.Count
= 0 !!
How can I delete my button ?
Thanks
JLE