473,397 Members | 2,077 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

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 1451
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.please> wrote in message
news:eI*******************@bignews4.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.please> wrote in
news:eI*******************@bignews4.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
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....
3
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...
3
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...
2
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...
8
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...
2
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...
8
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...
5
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...
2
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)...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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...

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.