none
[OL2010] Can I use the progressbar in the explorer window? RRS feed

  • Question

  • Hi,

    is is possible to show the explorers progress bar programatically by VSTO or WinAPI?

    I saw it a while ago, while clicking on a large attachment. Now I want to use it for showing the user, that my addin needs some time to do its work.

    In the last day I tried it also with a thread and my own animation, but sometimes my outlook went black (but I didn't draw in the non-gui thread). So this is too unstable for me.

    Kind regards,
    Daniel

    Monday, October 22, 2012 6:56 AM

Answers

  • Not accessible to your code.
     
    Don't use background threads at all with the Outlook object model. If you do use a thread it would need to be synched back to the main thread anyway for any UI.

    --
    Ken Slovak
    [MVP-Outlook]
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
    "Ranfty2000" <=?utf-8?B?UmFuZnR5MjAwMA==?=> wrote in message news:0062ca03-e8f6-4963-a6f6-79e08b4b35f6...

    Screenshot of the progressbar (but in an inspector window)

    This one I meant (but in the explorer window)


    Ken Slovak MVP - Outlook
    • Marked as answer by Ranfty2000 Monday, October 22, 2012 3:16 PM
    Monday, October 22, 2012 2:33 PM

All replies

  • Screenshot of the progressbar (but in an inspector window)

    This one I meant (but in the explorer window)

    Monday, October 22, 2012 6:57 AM
  • Not accessible to your code.
     
    Don't use background threads at all with the Outlook object model. If you do use a thread it would need to be synched back to the main thread anyway for any UI.

    --
    Ken Slovak
    [MVP-Outlook]
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
    "Ranfty2000" <=?utf-8?B?UmFuZnR5MjAwMA==?=> wrote in message news:0062ca03-e8f6-4963-a6f6-79e08b4b35f6...

    Screenshot of the progressbar (but in an inspector window)

    This one I meant (but in the explorer window)


    Ken Slovak MVP - Outlook
    • Marked as answer by Ranfty2000 Monday, October 22, 2012 3:16 PM
    Monday, October 22, 2012 2:33 PM
  • Not accessible to your code.
     
    Don't use background threads at all with the Outlook object model. If you do use a thread it would need to be synched back to the main thread anyway for any UI.

    --
    Ken Slovak
    [MVP-Outlook]
    http://www.slovaktech.com (but in the explorer window)

    Ken Slovak MVP - Outlook
    Hi Slovak. You said: "Don't use background threads at all with the Outlook object model"; That mean only the object MailItem or some things ? Can I use thread to anythings else?
    Monday, October 22, 2012 4:45 PM
  • You can use background threading for anything other than the Outlook object model (or Office object models), for example MailItem or NameSpace or anything else in the object model.

    --
    Ken Slovak
    [MVP-Outlook]
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
    "se7enbit" <=?utf-8?B?c2U3ZW5iaXQ=?=> wrote in message news:d8d39f49-fd97-45e0-a99b-01df0f6b0449...
    Hi Slovak. You said: "Don't use background threads at all with the Outlook object model"; That mean only the object MailItem or some things ? Can I use thread to anythings else?

    Ken Slovak MVP - Outlook
    Monday, October 22, 2012 4:58 PM