![]() |
Click here to advertise with us
|
|
|||||||
| Windows Forms Discussion related to Winforms application development |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hey guys, I just joined this forum but have 3-5 years experience with VB.NET. I created a browser in VB.NET and want to incorporate mouse gestures like in Opera and some IE based browsers like maxthon, Avant etc.
I think I will need to capture mouse clicks and mouse move in the WndProc of the browser. However, I noticed that no events are fired for mousemove. I can capture mouse clicks though. Has anyone programmed mouse gestures for a IE based browser in VB.NET? Any help would be appreciated. |
|
||||
|
The easiest approach would be to handle the MouseMove event of each HtmlDocument that was loaded, but it doesn't work over embedded objects in document like the many Flash ads you see in just about all webpages... so they probably use a system wide Mouse Hook.
By the way, you're not getting messages to Wndproc because the Webbrowser control is a wrapper for an ActiveX control that hosts the rendered document object, so even with a NativeWindow class to get messages from the COM component you'd have trouble finding the correct window handle to listen for.
__________________
Some useful links: Learning videoes, Code Samples, WMI Code Creator, MSDN, The Code Project, WindowsClient.net, ASP.net, W3 Schools, Regular-Expressions.info, GDI+ FAQ
How to format posts with code blocks etc - present the problem/post properly ![]() |
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|