Use the CustomTaskPane class in an application-level add-in to modify a custom task pane, or to respond when the location or visibility of the custom task pane changes.
To control the size or location of the custom task pane, you can use properties such as Height, Width, and Visible.
To respond when the custom task pane moves or changes visibility, you can handle the DockPositionChanged and VisibleChanged events.
Task panes are user interface panels that are typically docked to one side of an application window. For information about how to create custom task panes, see Custom Task Panes Overview.