get id for inspector window in outlook addin

A

ajaykumarrudra

hi,

I have mail of particular mail id. when i open the mail and click the reply
button the mail is visible in the "To" address. I want to delete that and add
my custom mail ids programmatically in office 2007 and vs2005. After click
the reply button new inspector window will open in that i need to add.
how can i do it. please provide me some code. i am running out of time.

Thank you
Ajay Kumar R
 
D

dlw

can you put the custom addresses in a contacts folder, then click the To: and
bring up that list and pick from it?
 
M

Michael Bauer [MVP - Outlook]

You might track the click on the Reply button. The window's
Commandbars.FindControl(,354) returns a ref to that button. Once, you
receive the button click event, set a flag and track the NewInspector event.
In that event, if the flag is set, you know the window opens due to a click
on the Reply button. On that e-mail delete all of the addresses from the
Recipients collection, and add whatever address you want to send the email
to.

--
Best regards
Michael Bauer - MVP Outlook

: VBOffice Reporter for Data Analysis & Reporting
: Outlook Categories? Category Manager Is Your Tool
: <http://www.vboffice.net/product.html?pub=6&lang=en>


Am Fri, 26 Sep 2008 11:17:53 GMT schrieb ajaykumarrudra:
 
Top