Anything out there similar to Folder.PickMessage() RRS feed

  • Question

  • We're moving our apps away from Notes mailboxes and one of the implementations that we have is to display a modal dialog of user's Notes Inbox view where user can select one or multiple emails and we programmatically use them in our business logic.

    I've been reviewing the Outlook Interop API and there's nothing out there similar to that except making my own dialog with columns displaying message item properties which is way too cumbersome.

    Any ideas?

    Monday, January 9, 2017 5:22 PM

All replies

  • Hello Jure,

    You need to develop a COM add-in for that. See Walkthrough: Creating Your First VSTO Add-In for Outlook for more information.

    Basically you can display a Windows Form on top of Outlook windows by using the ShowDialog method which accepts an instance of the IWin32Window interface. You can get an Outlook window handle by casting an Inspector or Explorer instance to the IOleWindow interface.

    profile for Eugene Astafiev at Stack Overflow, Q&A for professional and enthusiast programmers

    • Proposed as answer by Chenchen Li Tuesday, January 10, 2017 3:06 AM
    Monday, January 9, 2017 7:48 PM