Custom Task Pane Close Button.
C#
1
Posts
1
Posters
0
Views
1
Watching
-
I am using a CutomTask Pane in Excel as an C# .NET ADDIN. The custom task pane has a close button(X) at the right corner. I need to not allow the user to close the Task Pane or disable the Close button(X) . Can anyone have any idea ? Is there any way to trap the close(X) button and prevent user from closing it ? I tried to trap the VisibaleStateChange event handler of Custom Task pane and try to show it again when user clicks the X button. But I am not successfull. I am using the CreateCTP() COM function to create a custom task pane. Thanks, Rajan