-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: sree
Message 1 in Discussion

I'm trying to capture the mouse click events in the WebBrowser control, such 
as onmouseup, onmousedown, and oncontextmenu, that is only offered through 
using the mshtml library (DHTML objects).  The instructions from Microsoft 
are simple (http://support.microsoft.com/?kbid=312777), and the code I'm 
using is below.  The control is hosted on a Win Form using VB.NET

What happens is, if I add an event handler for ANY of these types of events, 
the browser becomes completely disabled.  I am unable to select text or 
click on html links to go to another page.  Even if I just add one event 
handler for oncontextmenu for example, the same thing happens.  It breaks 
the browser and there is no obvious reason that I can figure out.  I tried 
to make sure the cancelBubble property is set to false but it doesn't make a 
difference.

Is there a problem with my code or approach, or is there a better way to 
accomplish this that I should be doing instead.  I want to be able to sense 
when a user has selected text on a web page, as well as clicks on images.  
So I need to be able to capture mouse events and selection events, but also 
be able to ignore them and have the browser work as expected.


Thanks
Sree

_________________________________________________________________
Free drafts to 700 locations. 
http://server1.msn.co.in/msnleads/suvidha/dec03.asp?type=hottag Click here.


-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDOTNET/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to