Add custom task pane in word 2003 different for every document

Add-in Express™ Support Service
That's what is more important than anything else

Add custom task pane in word 2003 different for every document
 
Dharmchand Dhingra




Posts: 16
Joined: 2009-11-16
Hello,
I want to add the custom task pane in msword 2003. i add a command bar button for show and hide the custom task pane. but i m facing problem when multiple documents are opened. when i have multiple windows opened, and when i press show and hide button then it show and hide the custom task pane in all open document, but i want to show or hide only in current window.
Can any one suggest how i do this.

Thanks
Posted 24 Nov, 2009 07:33:41 Top
Fedor Shihantsov


Guest


Please try the following code:

        
        private void adxHideButton_Click(object sender)
        {
            if (adxWordTaskPanesCollectionItem1.CurrentTaskPaneInstance != null)
            {
                adxWordTaskPanesCollectionItem1.CurrentTaskPaneInstance.Hide();
            }
        }

        private void adxShowButton_Click(object sender)
        {
            adxWordTaskPanesCollectionItem1.ShowTaskPane();
        }
Posted 24 Nov, 2009 10:16:05 Top