Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8946457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:31:20+00:00 2026-06-15T12:31:20+00:00

I am writing a BHO (Browser Helper Object) in IE and I need to

  • 0

I am writing a BHO (Browser Helper Object) in IE and I need to track redirection.

Initially I thought BeforeNavigate2 event would be the one I need but I learned that it is actually for frames mainly. Next I found that NavigateComplete2 event of WebBrowserEvents2 seems to be fired up twice when there is a redirection. But I don’t know whether my observation is correct and also I don’t know how to tell whether a sequence of NavigateComplete2 events are due to redirections or user’s clicking. Please advise!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T12:31:21+00:00Added an answer on June 15, 2026 at 12:31 pm

    I found in lots of trial and error that if you compare Browser interface pointer passed from BeforeNavigate2 with the one you get when you created BHO, you can figure out what the real beginning url is. When they are the same, the url passed to BeforeNavigate2 is the one you need. You need to compare it against the one you get from NavigateComplete2. If they are different, then it is a sign of redirection. One gotcha is when a new window is opened. In that case you need to keep an eye on NewWindow event as well and do some special processing (when a new window is opened, BeforeNavigate2 URL will be passed to NavigateComplete2 as well so you need to set a flag and handle accordingly).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm busy writing a BHO(Browser Helper Object) in C# and I need to attach
i am new to Browser helper object i got the below link http://www.codeproject.com/Articles/37044/Writing-a-BHO-in-Plain-C which
I’m writing a BHO (Browser Helper Object) that catches the address the user enters
I'm writing a Browser Helper Object (BHO) for Internet Explorer in C#! I want
I am developing a Browser Helper Object running inside Internet Explorer. I am writing
I have a browser helper object on IE that have some clipboard history functions.
I am writing a BHO object for IE. I want the screen position of
Writing some XML documentation for a predicate helper class. But I can't figure out
Writing a program in which I need to split strings from a struct linked
Writing a recursive function, I want one fn that executes when the list has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.