Click here to Skip to main content
15,894,343 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using Explorer_WindowStateChanged to identified tab change event in IE 7 or IE 8.

My problem is, When i open any link in new tab (By right click on link and click on open in new tab), then somtimes Explorer_WindowStateChanged event does not fire and i am not able to detect that a new tab has been opened.

Explorer_WindowStateChanged event is working fine when i am switching between tab. The problem is only when i am opening new tab and the new opened tab is not active (Means active tab is that where i opened link)

Actually i am keeping the count of opened tab. So sometimes 8 tabs are open and my count show that 7 tab are open.


Please help me that how can i ensure that whenever a new tab is opening then after setsite() method, Explorer_WindowStateChanged event must fire.

Please Help
Posted

1 solution

I think, you need to use SHDocVw.ShellWindows.WindowRegistered event to get notification when a new tab or IE instance is opened.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900