473,547 Members | 2,290 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Hooking Webbrowser events?

Jim
I'd like to hook events (like when a user clicks or right-clicks on a link
in a web page) to launch a download manager or to open a new window for the
link, but I am finding it difficult to find sources on how this can be done
using VB.Net.

Have you seen any examples such as this?

I am using VB.Net 2005 Professional, but any .Net examples are welcomed.

Thanks!
Dec 14 '05 #1
3 871
Hello Jim ,
you can do this by implementing a messagefilter interface in your app

http://www.freevbcode.com/ShowCode.Asp?ID=5635

this example is made with a webbrowser control in VB.Net 2003 however the
same technique can be applied on anny other interface

regards

Michel Posseth [MCP]
"Jim" <re***@groups.p lease> wrote in message
news:eI******** ***********@big news4.bellsouth .net...
I'd like to hook events (like when a user clicks or right-clicks on a link
in a web page) to launch a download manager or to open a new window for
the link, but I am finding it difficult to find sources on how this can be
done using VB.Net.

Have you seen any examples such as this?

I am using VB.Net 2005 Professional, but any .Net examples are welcomed.

Thanks!

Dec 14 '05 #2
Hi Jim!
I'd like to hook events (like when a user clicks or right-clicks on a link
in a web page) to launch a download manager or to open a new window for the
link, but I am finding it difficult to find sources on how this can be done
using VB.Net.


Browser Helper Objects: The Browser the Way You Want It:
http://msdn.microsoft.com/ie/iedev/d...n/html/bho.asp
Browser Extensions:
http://msdn.microsoft.com/workshop/b...extensions.asp

Explorer Bars, Tool Bands, and Desk Bands:
http://msdn.microsoft.com/library/en..._adv/bands.asp
--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
Dec 14 '05 #3
"Jim" <re***@groups.p lease> wrote in
news:eI******** ***********@big news4.bellsouth .net:
I'd like to hook events (like when a user clicks or right-clicks on a
link in a web page) to launch a download manager or to open a new
window for the link, but I am finding it difficult to find sources on
how this can be done using VB.Net.

Have you seen any examples such as this?

I am using VB.Net 2005 Professional, but any .Net examples are
welcomed.

Thanks!


There is a good example called
"How To Handle Document Events in a Visual Basic .NET Application"
at http://support.microsoft.com/?kbid=311284.

I have successfully used this in VB.Net apps.

Which events you get depends on the HTML Document / interface you use.
HTHT

Mike
Datalucid.com
Dec 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
4473
by: Rick Strahl [MVP] | last post by:
I'm working on an app that's using the WebBrowser control. I got the control working fine, hooking to the document object. But I've run into a major issue with hooking the Document events. Whenever I hook any of the HTMLDocumnetEvent2_Event events like this: HTMLDocumentEvents2_Event DocEvents = this.Browser.Document as...
3
1568
by: Newton Godoy | last post by:
Hi all, I'm having some dificulties in using the webbrowser events in a windows forms. Events like downloadcomplete, navigatecomplete etc seem not be raised at all. For testing, I have placed a breakpoint inside the handler for those events but the program never stops there. Are there known issues with using webbrowser's events? The only...
3
1464
by: Jim | last post by:
I'd like to hook events (like when a user clicks or right-clicks on a link in a web page) to launch a download manager or to open a new window for the link, but I am finding it difficult to find sources on how this can be done using VB.Net. Have you seen any examples such as this? I am using VB.Net 2005 Professional, but any .Net examples...
0
1675
by: Vin | last post by:
The .Net 2.0's webbrowser is neat and pretty. But I am not able to capture Key events when the focus is on the webbrowser control in my winform. Options tried. 1. Wrote a class which extends this WebBrowser and override its onkeyup event - didn't work. 2. Same as option 1 but override preprocessmessage - didn't work. 3. Same as option 1 but...
2
3498
by: spamlaanbroek | last post by:
The .NET WebBrowser control in the Compact Framework 2.0 is a major headache. Once it takes the focus (e.g. by the user tapping on it) it keeps it and keyboard events are not passed to the form anymore even though KeyPreview is set to true. If there are no other controls on the form we don't get them at all to start with. I added a tiny...
8
1955
by: pigeonrandle | last post by:
Hi, Has anyone had any experience with hooking messages in other application windows (like SPY++). I want to listen for WM_MOVE messages, but can only seem to find examples of Keyboard and Mouse hooks. Please (and thankyou), James Randle.
2
5847
by: =?Utf-8?B?c25naWxi?= | last post by:
The WebBrowser control is described as exposing numerous public mouse events. See: http://msdn2.microsoft.com/en-us/library/ayestehw.aspx. many of the event are described as: "This event is not supported by this control. (inherited from WebBrowserBase)". Does this mean that I can't access these? I am using VS Express C#. Otherwise how do I...
8
3750
by: Ludwig Wittgenstein | last post by:
Hi, all. How can i hook up an InternetExplorer object to a WebBrowser control that I have in my windows form. Basically what I want to do is automate the WebBrowser control via the InternetExplorer object (instead of loading iexplorer.exe externally...). Thanks,
5
8050
by: kimiraikkonen | last post by:
Hi, I couldn't find a necessary class which shows when mouse hovers on a link in Webbrowser control. Think of there's a status bar(text), when mouse comes on a link, the URL must be shown in this status bar. How can i do this? Thanks.
2
1844
by: Anil Gupe/keen inc. | last post by:
I used the following to create a new Web Browser Control Dim WithEvents webBrowserContent As New AxSHDocVw.AxWebBrowser It works fine for some things for example webBrowserContent.Navigate(url) works. However, the DocumentComplete, NavigateComplete2 and a couple of other events I tried do not trigger when the user navigates in that...
0
7435
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7461
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7794
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5361
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5080
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3492
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3472
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1922
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1046
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.