Controlling Custom Task Pane - InfoPath Dev

InfoPath Dev

Use our Google Custom Search for best site search results.

Controlling Custom Task Pane

Last post 02-15-2006 09:24 AM by Matt Faus. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 01-31-2005 06:43 AM

    Controlling Custom Task Pane

    Is there a way to control when/if the custom task pane is visable? I would like to have it only apprear then a user clicks a custom button on the form.


  • 01-31-2005 05:01 PM In reply to

    Re: Controlling Custom Task Pane

    You can set the task pane to hide during the OnSwitchView event, which occurs right before the first view is visible. There will be a short flash of it appearing and then disappearing (oh, well!), and then you can make it hide or show from code when the user clicks on the button, based on your needs.

    Keep in mind though that the user can still open you task pane from the menus and keyboard shortcuts. So one solution for this is to set some simple message as visible in the task pane when you close it via code. Then if the user manually opens the task pane, they will see your message, and not an active task pane. The other option is to set all of the controls in the task pane to be disabled when you close the task pane via code... but this is more work.

    Greg Collins [InfoPath MVP]
  • 02-15-2006 09:24 AM In reply to

    Re: Controlling Custom Task Pane

    I found this today in the InfoPath SDK - the code is:

    objTaskPane = XDocument.View.Window.TaskPanes(4);
    objTaskPane.Visible = true;

    Matt Faus
    InfoPath Dev Texas
    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.