Re: Multiple IE instances



"amit sengupta" <amit@xxxxxxxxxxxxxxxxx> wrote in message
news:%23o$go6NRFHA.3096@xxxxxxxxxxxxxxxxxxxx
> I have implemented the DWebbrowserEvents event sink and its catching
> all events from the current IE instance. My problem is if there are
> multiple IE instances open, and I want to catch events in
> BeforeNavigate2, how do I know which of the browser instances should
> I control.

The first parameter of BeforeNavigate2 is the reference to the browser
firing this event.

> Is it a good idea to use the same event sink for all browser
> instances or should each browser instance make the app spawn a
> separate event sink so it keeps a track of individual objects per IE
> instance.

I personally use one sink per instance.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


.