![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]() Hi, I selected one mailItem in the Inbox. I selected New button. How can I know programatically that I selected New button only. Can anyone suggest me? Thanks in advance -- Nagaraj Tadipatri |
#2
|
|||
|
|||
![]()
Handle Inspectors.NewInspector(), that event fires when you open a new item.
-- 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 "Nagaraj" wrote in message ... Hi, I selected one mailItem in the Inbox. I selected New button. How can I know programatically that I selected New button only. Can anyone suggest me? Thanks in advance -- Nagaraj Tadipatri |
#3
|
|||
|
|||
![]()
Thanks Ken.
I have the following code in Inspectors.NewInspector() if (this.Application.ActiveExplorer().Selection.Count 0) { Object selObject = this.Application.ActiveExplorer().Selection[1]; if (selObject is Outlook.MailItem) { Outlook.MailItem mailItem = (selObject as Outlook.MailItem); } } In the above code I want to know whether New button is clicked or not. How to do this? -- Nagaraj Tadipatri "Ken Slovak - [MVP - Outlook]" wrote: Handle Inspectors.NewInspector(), that event fires when you open a new item. -- 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 "Nagaraj" wrote in message ... Hi, I selected one mailItem in the Inbox. I selected New button. How can I know programatically that I selected New button only. Can anyone suggest me? Thanks in advance -- Nagaraj Tadipatri |
#4
|
|||
|
|||
![]()
Does it really matter if the user clicked New or used Actions, New Mail
Message or whatever? They all result in opening a new item. If Inspector.CurrentItem.EntryID is null it's a new item, if not then a previously existing item was opened. If that's really so important to you then you can get the New button (wherever it exists) as a CommandBarButton and set up to handle its Click() event. You'd drill down from Explorer.CommandBars to the Standard toolbar (CommandBar) and FindControl to locate the New CommandBarButton, then handle Click() on it. -- 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 "Nagaraj" wrote in message ... Thanks Ken. I have the following code in Inspectors.NewInspector() if (this.Application.ActiveExplorer().Selection.Count 0) { Object selObject = this.Application.ActiveExplorer().Selection[1]; if (selObject is Outlook.MailItem) { Outlook.MailItem mailItem = (selObject as Outlook.MailItem); } } In the above code I want to know whether New button is clicked or not. How to do this? -- Nagaraj Tadipatri |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do I show Contact subfolders when email To: button is clicked | Leonard | Outlook - Using Contacts | 1 | September 11th 08 10:44 PM |
Ribbon - Get position from clicked button | Christian Havel | Add-ins for Outlook | 2 | July 12th 07 09:20 AM |
Recipient addresses are removed from the To: box when send button clicked | brodden | Outlook - General Queries | 1 | August 23rd 06 03:11 PM |
outlook not responding when clicked | parithi | Outlook and VBA | 0 | July 31st 06 06:55 PM |
"Accept Proposal" button is dimmed/unable to be clicked on a calendar entry | [email protected] | Outlook - General Queries | 0 | July 20th 06 09:34 PM |