Click to See Complete Forum and Search --> : Disable Custom Task Pane Close Button.


varadarajan.rajan@oracle.com
May 30th, 2008, 01:56 AM
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 either disable the Close button(X) or do not allow the user to click and close the task pane manually. 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