Multiple Tabs in IE7 with One Toolbar Instance

I developed a toolbar for Internet Explorer in C # to send and receive URLs from an external application. It did a great job with IE6, but I wanted to use the tabbed browser in the new version (IE7), but I ran into this problem. It seems that in IE7 each tab counts a separate instance and therefore a separate instance of my toolbar.

Over the course of my life, I cannot find a way for one instance to appear on each tab in one IE window. All I can do is register as a com object for ROT and each instance share and display all the others, but this seems unnecessarily complicated. Has anyone found a workaround for this?

+4
source share
2 answers

Since you didn’t talk much about what your toolbar does, I’m going to assume that when you have several tabs, open it using some resources ... memory, network, connections to a remote source, etc.

Instead of making sure that only one instance is working, my suggestion is to keep track of which tab is active by listening to the WindowStateChanged event, then you can do many things:

  • Turn off your connection while it is inactive.
  • Inform the remote source that the tab is not active.
  • Just do not show notifications on inactive tabs.
  • Stop all threads running on the toolbar.
  • Etc.
+1
source

It seems to me that you want msdn to get chchs during synchronization.

Robert Harvey is right, and it has become the standard, but getting IE URLs from multiple instances seems pretty painless .
0
source

Source: https://habr.com/ru/post/1286099/


All Articles