I need to be able to trap when the user clicks on a Web Browser control.

R

RMZ

So the .NET 2.0 web browser control does not provide a MouseDown or
Click event handler, but I have a need to trap on this. I would like
to know the best approach to accomplish this. I see Enter and Leave
event handlers on the control and I have tried to trap on these and
then check the MouseDown event on the parent, but this doesn't seem to
work.

Is there an approach I can use with API calls. I don't require an 100%
managed solution.

Thanks.
 
S

Sheng Jiang[MVP]

install a mouse hook and check if the source window is the webbrowser
control or its children.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top