471,306 Members | 1,237 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,306 software developers and data experts.

Making either either a webbrowser object or shockwave object react to a mouse click.

UJ
I have both a webbrowser object and a shockwave object on a window's form. I
want to make it so that if a person clicks on either of them, something
happens. But they both look like they don't have an onclick event. How do I
add that. I was thinking of putting an object (like a label) in front of
them the same size and transparent and trapping the onclick event for that.

Any thoughts?

TIA - Jeff.
Jan 5 '06 #1
1 1453
Jeff,

Capturing events from ActiveX controls is a little tricky. Unless someone
has a better idea, I would suggest using Spy++ to explore the HWND hierarchy
of the controls and then using a NativeWindow class to attach to the
appropriate handle. This will allow you to listen for whatever events you
are looking for. This approach is not trivial, so hopefully someone will
have a better suggestion.

--
Colin Neller
http://www.colinneller.com/blog
"UJ" <fr**@nowhere.com> wrote in message
news:e$**************@TK2MSFTNGP15.phx.gbl...
I have both a webbrowser object and a shockwave object on a window's form.
I want to make it so that if a person clicks on either of them, something
happens. But they both look like they don't have an onclick event. How do I
add that. I was thinking of putting an object (like a label) in front of
them the same size and transparent and trapping the onclick event for that.

Any thoughts?

TIA - Jeff.

Jan 5 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by wesley | last post: by
9 posts views Thread by philip | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.