473,385 Members | 1,341 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,385 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 5181
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...
0
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...
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)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?

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.