Questions tagged [beforenavigate2]

Fires before navigation occurs in the given object (on either a window element or a frameset element).

The BeforeNavigate2 event replaces the BeforeNavigate and FrameBeforeNavigate events, which should no longer be used. The pDisp parameter that specifies the corresponding WebBrowser object identifies where the navigation is to occur. Microsoft Internet Explorer 3.0 required the FrameBeforeNavigate and a target frame name to identify the target of navigation. However, this solution was ambiguous, because frame names are not unique.

10 questions
3
votes
1 answer

How can I overlop ie's BeforeNavigate2 when using the WPF Browser Control?

As far as I understand, WPF's Brwoser control is a wrapper of the ie Active-X control. The later has a BeforeNavigate2 Method, while I don't find this in the WPF WebBrowser control. Is there a way I can work around this? Thx! Marc
marc40000
  • 3,167
  • 9
  • 41
  • 63
2
votes
2 answers

Navigate2 Debugging

I'm attempting to create a macro through VBA to open a specified set of links in multiple tabs on IE. Currently I'm using the code below, and it works most of the time if I am trying to open 3 or less tabs. Anything more than 3, the code crashes at…
thetvck
  • 21
  • 4
2
votes
1 answer

Directly modify a string of a passed parameter in memory

Is it possible to modify the memory value of a function parameter passed by a COM event method? The property value in the COM object needs to be edited. I'm trying to set a custom user agent for an ActiveX control and re-navigating the loading page…
1
vote
0 answers

Problems automating FileDownload in the axWebBrowser control in C#

I'm working on a project trying to scrape an intranet site at my company because right now there are constraints that prohibit me from getting help on the server end of things. I'm writing a C# client using an axWebBrowser control to navigate to…
crlanglois
  • 3,537
  • 2
  • 14
  • 18
1
vote
0 answers

BeforeNavigate2 event does not work on 32-bit Windows 7 Internet Explorer 11

I have implemented a BHO in C#, which uses the BeforeNavigate2 event. It is working in Internet Explorer 11 on a 64-bit Windows 7 system. On a 32-bit Windows 7 system the BeforeNavigate2 event is not triggered. But the SetSite method is called. Why…
Ronquam
  • 145
  • 2
  • 13
1
vote
1 answer

Windows 7 does not fire DISPID_BEFORENAVIGATE2 event?

I have a BHO that is supposed to intercept the DISPID_BEFORENAVIGATE2 events when Windows Explorer is browsing the local disks. It works well in XP and Vista, but stopped working in Windows 7 RC. Turns out, Windows 7 RC stopped sending the…
Andrei Belogortseff
  • 1,861
  • 3
  • 18
  • 26
0
votes
1 answer

How to open and perform write on a file in a DLL?

I am developing an internet-explorer plug-in (Browser Helper Object-BHO) in C++. In that, when the event BeforeNavigate2 is fired I want to save the URL to a file. Therefore, to open the file I wrote the usual code: FILE* fp; fp =…
gmaster
  • 174
  • 1
  • 15
0
votes
2 answers

BeforeNavigate2 does not return URL parameters

I have a C++ program that display a browser using the Microsoft WebBrowser control. I pass hints in the URL parameters to the code so that alternative actions can be taken rather then simply allowing the browser to navigate to the new page. For…
Marcus Erickson
  • 1,561
  • 1
  • 11
  • 10
0
votes
1 answer

Determine whether the user selected Refresh in WebBrowser Control

How can I detect if the user selected Refresh via the context menu? The NavigateComplete2 method does not get invoked when the user selects it. More importantly, to set own custom user agent, one way to do it is to hook the BeforeNavigate2 event…
NbdNnm
  • 528
  • 2
  • 11
0
votes
1 answer

How to get POSTDATA from webbrowser object in VB.NET 2010?

I understand in previous versions of VB the webbrowser object had a beforenavigate2 event that provided access to the postdata of the webbrowser. I've searched and searched and I think that event was disabled for visual studio 2010. Any thoughts on…
Tom C
  • 21
  • 3