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 |
|
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();
}
|
|