Need to know when a CustomTaskPane is closed in office 2010

답변됨 Need to know when a CustomTaskPane is closed in office 2010

  • 2012년 3월 8일 목요일 오전 7:58
     
     

    A CustomTaskPane has two events in Office 2010, and one of them, VisibleChanged, is fired when someone x-es out the CustomTaskPane. BUT, in Office 2010 you will also get a callback to the VisibleChanged event when you click the File menu AND when you close the file menu! In other words I have no clue if someone is actually x-ing out the CustomTaskPane or hitting the File menu. I only find recommendations of using the VisibleChanged event, but this is not good enough.

    Anyone have a workaround for this?

    Thanks in advance,
    Martin

모든 응답