Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / New Users / January 2004

Tip: Looking for answers? Try searching our database.

How to select a mail in the outlook inspector programatically in C#?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ksskumar - 21 Jan 2004 15:49 GMT
Hi,

I am developing an addins for outlook in C#.  

My need is, If I click a custom button on the custom tool bar , a mail
should select automatically in the outlook inspector.  Ofcourse I give
some search criteria in the button click event to select the mail.

I can identifiy the mail with my search criteria from the custom
button click event.  Means I have mail as outlook mailitem object. But
I am not able to select that mail automatically in the inspector.

Please let me know, if anybody know the way.  The code/sample can be
in any programming language.

with regards
kumar
Sue Mosher [MVP] - 21 Jan 2004 16:05 GMT
You mean display it in an Inspector window? If so, the method you're looking
for is MailItem.Display.
Signature

Sue Mosher, Outlook MVP
Author of
    Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx

> Hi,
>
[quoted text clipped - 13 lines]
> with regards
> kumar
ksskumar - 22 Jan 2004 03:09 GMT
Hi Mosher,

Thanks for your comment.

I tried it also, something like this

       object OMissing = System.Reflection.Missing.Value ;
       MailItem.Display(OMissing) ;       

It opens the message, BUT in a the new window, NOT  on the the same
window itself.  I need to display the message on the inspector window
itself.

OR is there any way to select the mail in the inspector from the code?

regards,
kumar

> You mean display it in an Inspector window? If so, the method you're looking
> for is MailItem.Display.
[quoted text clipped - 15 lines]
> > with regards
> > kumar
Sue Mosher [MVP] - 22 Jan 2004 12:39 GMT
Now I'm really confused about what you're trying to do. What do you mean by
"select the mail in the inspector"?
Signature

Sue Mosher, Outlook MVP
Author of
    Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx

> Hi Mosher,
>
[quoted text clipped - 16 lines]
> > You mean display it in an Inspector window? If so, the method you're looking
> > for is MailItem.Display.

> > > Hi,
> > >
[quoted text clipped - 13 lines]
> > > with regards
> > > kumar
Anushya - 24 Jan 2004 08:00 GMT
Hi Sue

I think he doesnot need to open the mail in a new window.
Mailitem.display() opens the mail in a new window in the default way.

Instead he needs to display the mail body of the selected mail in the
place where outlook displays mail body. But here he will
programmatically select the mail item thru some custom logic

Simply he wants to display the mail body of the program selected mail
item in the outlook window where mail body is displayed.
Anushya
> Now I'm really confused about what you're trying to do. What do you mean by
> "select the mail in the inspector"?
[quoted text clipped - 40 lines]
> > > > with regards
> > > > kumar
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.