I am using a WebBrowser control as part of an Excel Task Pane. We do not want to create a new one for every workbook created (this is in Excel 2013 where each workbook gets its own task pane) and try to keep them synced, so we have the task pane create an instance of a singleton browser control.
What happens is every workbook that opens gets the instance of this webbrowser control and it is shown for that workbook... and stops being displayed for other workbooks before it. This is ok, but I would like to be able to show the control on the active workbook's task pane when the user switches between open workbooks.
I have added the code to catch the Workbook Activate event, and when it calls in to show the webbrowser control, it is still pointing at the simgleton instance... I just do not know how to show the control again.