Is it possible to hide my custom task pane when opening the file. I tried to add the following command to the OnLoad event, but it looks like the View has not yet been created at this point:
thisXDocument.View.Window.TaskPanes[0].Visible = false;
Is there any other way to do it?
BTW- I am using the 2003 InfoPath API.