View Single Post
  #5  
Old March 25th 09, 10:49 AM posted to microsoft.public.outlook.program_addins
Ashish
external usenet poster
 
Posts: 94
Default Item Save and Saveas events

Thanks. Yes Now i can capture the SaveAs action.
When we click on SaveAs a new "SaveAs" dislog box appear. How to capture
events for this "SaveAs" dislog box.
Means on saveas dialog there are 2 buttons "Save" and "Cancel". I want to
capture events when i click on these buttons.
"Ken Slovak - [MVP - Outlook]" wrote in message
...
Not a menu click event, but the actual CommandBarButton objects that are
accessed from the menus/toolbars. So you need to instantiate a button
object, declared WithEvents for VB/VBA, representing say File,Save in the
Inspector menus. Then the same for File, SaveAs. And so on for every
possible way to perform those actions. You will need the id properties of
the buttons to grab them. Those can be picked up from a tool like
OutlookSpy.

There are plenty of code samples for using CommandBars.FindControl, which
is what you'd be using. It's up to you to find and grab all relevant
CommandBarButton objects.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Ashish" wrote in message
...
I tried to capture the event for menu click but could not make it. Is
there any example available. I tried those which are in outlookcode.com
but not mentioned clearly




Ads