Visual Basic .NET Forums  
Click here to advertise with us

Go Back   Visual Basic .NET Forums > VB.NET > Windows Forms

Windows Forms Discussion related to Winforms application development

VB.NET Forums Newsletter Signup:
Email address:


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-31-2008, 3:54 PM
VB.NET Forum Newbie
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Oct 2008
Posts: 1
Reputation: 0
vbuser79 is on a distinguished programming path ahead
Default Mouse Gesture in Webbrowser

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 10-31-2008, 6:06 PM
JohnH's Avatar
VB.NET Forum Moderator
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Dec 2005
Location: Norway
Age: 37
Posts: 10,305
Reputation: 1315
JohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond repute
Default

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.
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





All times are GMT -4. The time now is 8:33 PM.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2


For advertising opportunities click here.