R
Ron Coffee
I have a COM add in using VSTO 2005 for outlook 2003. My code adds a Forward
event handler using the explorer selection change event.
void _explr_SelectionChange()
{
for (int i = 1; i <= _explr.Selection.Count; i++)
{
object selectedItem = _explr.Selection;
if (selectedItem is MailItem)
{
MailItem _item = (MailItem)selectedItem;
((ItemEvents_10_Event)_item).Forward += _item_Forward;
}
}
}
The event does not fire the first time I forward an item. It fires normally
after the first time.
There is no exception being raised. I should add that we add a tool bart to
to the outlook item. It seems like the constructor for the tool bar
interferes with the Forward event registration.
event handler using the explorer selection change event.
void _explr_SelectionChange()
{
for (int i = 1; i <= _explr.Selection.Count; i++)
{
object selectedItem = _explr.Selection;
if (selectedItem is MailItem)
{
MailItem _item = (MailItem)selectedItem;
((ItemEvents_10_Event)_item).Forward += _item_Forward;
}
}
}
The event does not fire the first time I forward an item. It fires normally
after the first time.
There is no exception being raised. I should add that we add a tool bart to
to the outlook item. It seems like the constructor for the tool bar
interferes with the Forward event registration.