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.

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

Sheng
Wed Sep 26 15:47:30 PDT 2007

install a mouse hook and check if the source window is the webbrowser
control or its children.
--
Sheng Jiang
Microsoft MVP in VC++
"RMZ" <Jeremy.Deats@gmail.com> wrote in message
news:1190819683.751926.102310@o80g2000hse.googlegroups.com...
> 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.
>



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

Robbe
Thu Sep 27 06:47:41 PDT 2007

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

--
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




"RMZ" <Jeremy.Deats@gmail.com> wrote in message
news:1190819683.751926.102310@o80g2000hse.googlegroups.com...
> 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.
>