Discussion:
Outlook Add-in event trouble
(too old to reply)
DataDay
2005-09-15 00:47:09 UTC
Permalink
Hello,

I'm using VB6 and am developing a COM add-in for Outlook XP.

When a new email is created, a button is added to the standard toolbar and
when pressed is fires some code (call this emailOne).

When a second new email is created, a button is added to the standard
toolbar and when pressed is fires some code (call this emailTwo).

Now is the user returns to emailOne and presses the button it does not fire
(call this the problem)

I'm trapping the NewInspector event and added the button.

I'm catching the OnClick event of the button using "Public WithEvents
btnRename As Office.CommandBarButton".

How do I make the OnClick event always fire?

Thanks
Guru
2005-10-01 15:14:02 UTC
Permalink
Post by DataDay
Hello,
I'm using VB6 and am developing a COM add-in for Outlook XP.
When a new email is created, a button is added to the standard toolbar and
when pressed is fires some code (call this emailOne).
When a second new email is created, a button is added to the standard
toolbar and when pressed is fires some code (call this emailTwo).
Now is the user returns to emailOne and presses the button it does not fire
(call this the problem)
I'm trapping the NewInspector event and added the button.
I'm catching the OnClick event of the button using "Public WithEvents
btnRename As Office.CommandBarButton".
How do I make the OnClick event always fire?
Thanks
'''''''
Please add the Inspector objects to a global collection and then try again
Loading...