473,569 Members | 2,799 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1502
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.c om> wrote in message
news:e$******** ******@TK2MSFTN GP15.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
4132
by: wesley | last post by:
Hello, My application is hosting three WebBrowser control. What I am trying to do is when the mouse move over one of the WebBrowser controls I want to set the focus on that control so the mouse wheel can move correctly. At the moment I have to click on the WebBrowser control itself to make the mouse wheel to work. In addition to that, the...
9
8567
by: Keith Rowe | last post by:
Hello, I am trying to reference a Shockwave Flash Object on a vb code behind page in an ASP.NET project and I receive the following error: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx). On the aspx page I have the object tag as follows:
0
877
by: UJ | last post by:
Folks, I hope you can help me on this. I'm losing my mind on it. I have a browser control (and actually a shockwave control) in my Windows App. What I want to have happen is if somebody clicks on the object, it will fire off an event that I can catch to do stuff. It appears as if the normal control doesn't have an onClick event (which I can...
9
3169
by: philip | last post by:
Is it possible, on a WebBrowser control, to intercept a HyperLink and react programmatically to this click ? That's my first question. In fact, I use the Webbrowser as a sort of report (I write the html code and tables programmatically in a string, and I give the string to the property DocumentText of the WebBrowser, and I insert in this...
0
5542
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted ******************************************************** For this teeny job, please refer to: http://feeds.reddit.com/feed/8fu/?o=25
5
4880
by: suresh_nsnguys | last post by:
Hi, I am facing one problem in embed flash object.i am displaying the flash (.swf file) using embed tag<embed> in IE.i want to display the alert box when user click the mouse over the flash .i am able to display the alert box only when user double click the flash .but i want alert box need to display when single mouse click over flash. my...
2
4717
by: Jinx08 | last post by:
I am probably an itermediate user when it comes to flash however I am at a loss with this problem. I have posted numerous flash files to the internet and never had this problem however the key there is those were all using older versions of Flash and using windows xp. I now own Flash CS3 and I am running Windows Vista I am not sure if this has...
1
5028
by: P-GPS | last post by:
Hi, 1. I have a webbrowser control in a VB .NET (3.5) application. 2. I want to capture the event and call a function whenever the mouse is hovering over a hyperlink. How do I do this? 3. I also want to capture the mouse clicks only in the web-browser. How do I do this? I don't want to use the mouse clicks for the whole form. Thanks.
0
7697
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7612
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7924
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8120
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7672
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6283
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
2113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1212
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
937
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.