Задайте вопросЗадайте вопрос
 

ОтвеченоInactive Command Bar

  • 3 июля 2009 г. 12:38EssCee Медали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     
    I created a Command Bar for our firm which loads a custom outlook form (from Exchange 2007)when a button is clicked from the command bar. Occassionaly some users have a problem where the bar is inactive or disabled. I have a few Try Catch blocks to trap errors and none of these have popped up to say to an error has occurred. Is there any other way to debug my application? or to narrow down why its has become inactive/disabled?

    Thanks

Ответы

  • 4 июля 2009 г. 10:32Cindy MeisterMVP, МодераторМедали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     Отвечено
    At the top of the forum is a message about FAQs. In that are links to various FAQ messages, one of which discusses CommandBar objects. Please work through that carefully. The usual cause of the problem you describe is that you're not declaring the CommandBar objects at the class level, so they go out of scope and are eventually garbage collected. The FAQ shows how your code needs to be structured.

    If you continue to get the problem, please post the code that manages the CommandBars. Also specify the version of Outlook (Outlook is not Exchange) and the type of "item" the form is for.
    Cindy Meister, VSTO/Word MVP

Все ответы

  • 4 июля 2009 г. 10:32Cindy MeisterMVP, МодераторМедали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     Отвечено
    At the top of the forum is a message about FAQs. In that are links to various FAQ messages, one of which discusses CommandBar objects. Please work through that carefully. The usual cause of the problem you describe is that you're not declaring the CommandBar objects at the class level, so they go out of scope and are eventually garbage collected. The FAQ shows how your code needs to be structured.

    If you continue to get the problem, please post the code that manages the CommandBars. Also specify the version of Outlook (Outlook is not Exchange) and the type of "item" the form is for.
    Cindy Meister, VSTO/Word MVP