Set different text in edit control on each inspector wnd Outlook 2

C

CoolSanil

Hi All,
I am developing COM Add In for outlook 2007. On Inspector window i have
added one edit box(I have implemented IRibbonExtensibility interface ), in
that edit box i have to show timer indicating how much time is spent while
reading or composing mail. My Problem is how should i set text in edit box on
the inspector window so each inspector window has different time depending on
when they are created. I have callback function which will take text of the
edit control, also i am invalidating that control so when time changes my
callback function will be called to set the text.
Any help or suggestion will be appreciated.
 
K

Ken Slovak - [MVP - Outlook]

What exactly is the question? Is it how to determine which Inspector is
firing the callback? Just use the control object passed to you in the
callback and use its Context property. That is the Inspector and from there
you can get the item in the Inspector and read any properties on the item or
Inspector objects.

Outlook.Inspector myInsp = (Outlook.Inspector)control.Context;
 
C

CoolSanil

Hello Ken
I just want to set different text (which will show time elapsed while
working with mail) in edit box per inspector. how should i do that?
 
K

Ken Slovak - [MVP - Outlook]

As I said:

Just use the control object passed to you in the callback and use its
Context property. That is the Inspector.

Use that Inspector to see which time to use and set the control property to
the desired time.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top