471,627 Members | 1,571 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,627 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 2556
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Rick Strahl [MVP] | last post: by
3 posts views Thread by Newton Godoy | last post: by
3 posts views Thread by Jim | last post: by
8 posts views Thread by pigeonrandle | last post: by
2 posts views Thread by =?Utf-8?B?c25naWxi?= | last post: by
8 posts views Thread by Ludwig Wittgenstein | last post: by
2 posts views Thread by Anil Gupe/keen inc. | last post: by
reply views Thread by leo001 | last post: by

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.