locked
Outlook Add-in programmatically show form region RRS feed

  • Question

  • Hi,

    I have a ribbon tab and a button inside this tab, I need to programmatically open my FormRegion after clicking the button. Plus is there a way to change the main view (middle view) in Outlook with a FormRegion after clicking a button? (like when you click a different folder the main view's content changes) by the way i'm using c#, thanks :)

    • Moved by Jason Dot Wang Thursday, September 13, 2012 8:35 AM This thread is about Outlook for Developers (From:Visual C# General)
    Wednesday, September 12, 2012 8:47 AM

Answers

  • Form regions are specific to the item type they are registered for ("IPM.Note" or "IPM.Note.MyFormOnly"), whether standard or custom. They are not for Explorers and cannot be shown in the main folder view, only in an open Inspector or in the preview pane.
     
    There is no way I know of to do what you want, show a form region completely outside of an item context.
     
    What might be a possibility, although it's not for the faint-hearted and will take a lot of Win32 API pinvokes, would be what are called side-by-side windows. See Steve Griffin's blog post on those at http://blogs.msdn.com/b/stephen_griffin/archive/2010/06/01/adjacent-windows-in-outlook.aspx
     
    Another possibility, although it would require you to adopt their complete framework, is Add-In Express: http://www.add-in-express.com/?utm_source=adx&utm_campaign=adx1&utm_medium=search&gclid=CLGY4frhsrICFcHe4Aodu2oAkw
     
    They have implementations for adjacent windows already written and debugged for use with their framework, so that might be an option for you.

    --
    Ken Slovak
    [MVP-Outlook]
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
    "Ben_09090" <=?utf-8?B?QmVuXzA5MDkw?=> wrote in message news:bde34427-9409-494a-90ed-e420d64ced05...

    Hi,

    I have a ribbon tab and a button inside this tab, I need to programmatically open my FormRegion after clicking the button. Plus is there a way to change the main view (middle view) in Outlook with a FormRegion after clicking a button? (like when you click a different folder the main view's content changes) by the way i'm using c#, thanks :)


    Ken Slovak MVP - Outlook
    • Marked as answer by Leo_Gao Wednesday, September 19, 2012 1:37 AM
    Thursday, September 13, 2012 2:28 PM

All replies

  • What version of Outlook?

    A quick search of google provided this, create the button and use VBA to code the launch of program:

    http://www.howto-outlook.com/howto/macrobutton.htm

    • Edited by CountryStyle Wednesday, September 12, 2012 7:42 PM
    Wednesday, September 12, 2012 7:39 PM
  • Thank you for the reply CountryStyle, I'm using Outlook 2010. I've checked the link that you posted, but I already have those functionalities in my Project. My question is how to programmatically show the FromRegion (I created using VS) inside the button click event. Normally you can only open a Form Region from a sub view or what we call inspector window (notes, task, appointments, contacts...). There is no easy way to do this but I really do appreciate your help. Thanks.
    Thursday, September 13, 2012 12:51 AM
  • Hi Ben 09090,

    Welcome to MSDN Forum Support.
    You are more likely to get more efficient responses to Outlook for Developers issues at
    http://social.msdn.microsoft.com/Forums/en/outlookdev/threads where you can contact Outlook for Developers experts,so I would like to redirect you to appropriate forum for better responses.

    Sincerely,

    Jason Wang


    Jason Wang [MSFT]
    MSDN Community Support | Feedback to us

    Thursday, September 13, 2012 8:34 AM
  • Form regions are specific to the item type they are registered for ("IPM.Note" or "IPM.Note.MyFormOnly"), whether standard or custom. They are not for Explorers and cannot be shown in the main folder view, only in an open Inspector or in the preview pane.
     
    There is no way I know of to do what you want, show a form region completely outside of an item context.
     
    What might be a possibility, although it's not for the faint-hearted and will take a lot of Win32 API pinvokes, would be what are called side-by-side windows. See Steve Griffin's blog post on those at http://blogs.msdn.com/b/stephen_griffin/archive/2010/06/01/adjacent-windows-in-outlook.aspx
     
    Another possibility, although it would require you to adopt their complete framework, is Add-In Express: http://www.add-in-express.com/?utm_source=adx&utm_campaign=adx1&utm_medium=search&gclid=CLGY4frhsrICFcHe4Aodu2oAkw
     
    They have implementations for adjacent windows already written and debugged for use with their framework, so that might be an option for you.

    --
    Ken Slovak
    [MVP-Outlook]
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
    "Ben_09090" <=?utf-8?B?QmVuXzA5MDkw?=> wrote in message news:bde34427-9409-494a-90ed-e420d64ced05...

    Hi,

    I have a ribbon tab and a button inside this tab, I need to programmatically open my FormRegion after clicking the button. Plus is there a way to change the main view (middle view) in Outlook with a FormRegion after clicking a button? (like when you click a different folder the main view's content changes) by the way i'm using c#, thanks :)


    Ken Slovak MVP - Outlook
    • Marked as answer by Leo_Gao Wednesday, September 19, 2012 1:37 AM
    Thursday, September 13, 2012 2:28 PM