VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



WebbrowserEx Mouse/Keyboard Event Enabled WebBrowser (Control)

by S.Y. Kim (7 Submissions)
Category: Internet/HTML
Compatability: Visual Basic 5.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (8 Votes)

Give the standard mouse and keyboard events to your webbrowser application. Try Ctrl+N and you will find that a new instance of the form opens instead a default internet explorer instance and mouse and keyboard events still work. Since thread-wide hookings are used, you can always override default mouse/keyboard actions oriented to your app any time and any where.(Fully tested with SDI, but not tested with MDI). Rather than a complete browser application, this project will help you get (hidden) child window handle, handle thread-wide mouse and keyboard hookings, and create and maintain multiple instances of a hooked user control safely. These techniques will be some help when normal VB ways fail and you need to take a different measure. You can compile three groups of codes contained in this project, mouse hooking class, keyboard hooking class, and webbrowser control separatly, and make three separate dll or ocx to get reusable components and use them when you need one in your application. I originally developed this sample project using these dll and ocx componenets but just aggregate them to post here and for your easier access to the codes.
Enjoy them.

Rate WebbrowserEx Mouse/Keyboard Event Enabled WebBrowser (Control)

Download WebbrowserEx Mouse/Keyboard Event Enabled WebBrowser (Control)

Download WebbrowserEx Mouse/Keyboard Event Enabled WebBrowser (Control) (101 KB)

WebbrowserEx Mouse/Keyboard Event Enabled WebBrowser (Control) Comments

No comments have been posted about WebbrowserEx Mouse/Keyboard Event Enabled WebBrowser (Control). Why not be the first to post a comment about WebbrowserEx Mouse/Keyboard Event Enabled WebBrowser (Control).

Post your comment

Subject:
Message:
0/1000 characters