DataDay
2005-09-15 00:47:09 UTC
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
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