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.
Sheng Jiang[MVP] - 26 Sep 2007 23:47 GMT
install a mouse hook and check if the source window is the webbrowser
control or its children.

Signature
Sheng Jiang
Microsoft MVP in VC++
> 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
[quoted text clipped - 7 lines]
>
> Thanks.
Robbe Morris - [MVP] C# - 27 Sep 2007 14:47 GMT
As mentioned above, see if these windows api calls dealing with the mouse
are helpful.
http://www.eggheadcafe.com/articles/transparentform_send_mouse_click_to_desktop.asp

Signature
Robbe Morris [Microsoft MVP - Visual C#]
.NET PropertyGrid Control - ListBox, ComboBox, and Custom Classes
http://www.eggheadcafe.com/tutorials/aspnet/270e9432-d236-47e7-b1af-5cd3abe27a75
/net-propertygrid-control.aspx
> 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
[quoted text clipped - 7 lines]
>
> Thanks.