473,320 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Click event with webbrowser control

Hi,

I have a form with a webbrowser control set to fill the form.

I want to capture when the form is clicked.

As the browser control is filling the form the user would click on
the browser conttrol, but it does not have a click event.

How can I trap the click event for a form like this????

rotsey
Sep 7 '07 #1
1 3659
Rotsey,

If the web browser control fills the form, then the form will never be
clicked, because the client area of the form is taken up by the web browser
control.

What you could do is override the WndProc method of the form or
WebBrowser control and then intercept the messages going to the form. You
should be able to find a WM_CLICK message and use that to know when the web
browser control is clicked.

However, make sure you call the base implementation of WndProc, because
I am sure you want the web browser to process the click as well (unless
there is to be no interaction, and it is for display purposes only).

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Rotsey" <ma***********@RemoveThis.optusnet.com.auwrote in message
news:uo**************@TK2MSFTNGP03.phx.gbl...
Hi,

I have a form with a webbrowser control set to fill the form.

I want to capture when the form is clicked.

As the browser control is filling the form the user would click on
the browser conttrol, but it does not have a click event.

How can I trap the click event for a form like this????

rotsey


Sep 7 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Alistair Saldanha | last post by:
I'm looking for the event that is fired by Internet Explorer to an "alert": <SCRIPT> Alert("You already have a session open") </SCRIPT> The event would be webBrowser.Document.???? Much...
7
by: Robert May | last post by:
I have an application that uses the Ax web browser object. When I call the IHTMLElement.click() method on an input button (<input type="submit"> or <input type="button">), the click fires...
24
by: ej1002 | last post by:
Hi I have developed a Windows Application(C# Windows Form) which will get the IFrame Source of the page it is navigating using Webbrowser Control. Now I want do this in ASP.Net web application(C#...
2
by: cweeks78681 | last post by:
I am porting some VB6 code that automates navigation through a web page by getting all the <a> tags into a collection and then calling the Click method on the appropriate one. How do I click a...
5
by: jeremy | last post by:
I have an ASP.Net 2.0 application running on Windows Server 2003. The application displays properly in Internet Explorer, however, when I use a browser control embedded in a .net form, I get an...
2
by: JDeats | last post by:
Using VS.NET 2005, if you place a WinForms WebBrowser control on a form, then place a command button on that form and in the "click" even handler for the command you do: webBrowser1.DocumentText...
0
by: Rotsey | last post by:
Hi, I have a form with a webbrowser control set to fill the form. I want to capture when the form is clicked. As the browser control is filling the form the user would click on the browser...
1
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...
1
by: GS | last post by:
Sorry about the messy copy paste in the previous post for NewWindows3. It looked ok before posting but I found out the pasted "text" has a lot of junk when posted here is an more accurate and...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.