473,414 Members | 1,690 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,414 software developers and data experts.

A problem with the WebBrowser control

Dom
I have a prgram with a webBrowser control. The user can click on a
Linked Reference and the webBrowser control shows that site.

Sometimes the URL (not my program, but the URL I am browsing to) has
an "error on page", eg, a javascript error. My program then gives a
dialog box, stating the error, and all my users think I wrote a crummy
program.

IE somehow gets around this. It will simply write the phrase "error
on page" at the status bar along the bottom of the IE window. So
somehow it is catching the error and ignoring it.

Can I do this with the WebBrowser Control? I do not see an event like
"ErrorOnPage" that I can trap and handle.

TIA,
Dom
Jun 27 '08 #1
3 3254
There are settings in IE to "disable script debugging" which suppresses
these dialogs. Since the WebBrowser control wraps IE, you would probably
need to find the Registry entries to modify programmatically for your app.
Peter

"Dom" <do********@gmail.comwrote in message
news:70**********************************@m44g2000 hsc.googlegroups.com...
>I have a prgram with a webBrowser control. The user can click on a
Linked Reference and the webBrowser control shows that site.

Sometimes the URL (not my program, but the URL I am browsing to) has
an "error on page", eg, a javascript error. My program then gives a
dialog box, stating the error, and all my users think I wrote a crummy
program.

IE somehow gets around this. It will simply write the phrase "error
on page" at the status bar along the bottom of the IE window. So
somehow it is catching the error and ignoring it.

Can I do this with the WebBrowser Control? I do not see an event like
"ErrorOnPage" that I can trap and handle.

TIA,
Dom
Jun 27 '08 #2
Dom
On May 13, 4:07*pm, "Peter Bromberg [C# MVP]"
<pbromb...@nospammin.yahoo.comwrote:
There are settings in IE to "disable script debugging" which suppresses
these dialogs. Since the WebBrowser control wraps IE, you would probably
need to find the Registry entries to modify programmatically for your app.
Peter

"Dom" <dolivas...@gmail.comwrote in message

news:70**********************************@m44g2000 hsc.googlegroups.com...
I have a prgram with a webBrowser control. *The user can click on a
Linked Reference and the webBrowser control shows that site.
Sometimes the URL (not my program, but the URL I am browsing to) has
an "error on page", eg, a javascript error. *My program then gives a
dialog box, stating the error, and all my users think I wrote a crummy
program.
IE somehow gets around this. *It will simply write the phrase "error
on page" at the status bar along the bottom of the IE window. *So
somehow it is catching the error and ignoring it.
Can I do this with the WebBrowser Control? *I do not see an event like
"ErrorOnPage" that I can trap and handle.
TIA,
Dom- Hide quoted text -

- Show quoted text -
Your reply made me think that maybe I should be looking for a property
and not an event. Then I found a property called
"ScriptErrorsSurpressed", and that seems to have done the trick.
Dom
Jun 27 '08 #3
Excellent. Thanks for that discovery, in case I ever need it.
Peter
"Dom" <do********@gmail.comwrote in message
news:0c**********************************@y38g2000 hsy.googlegroups.com...
On May 13, 4:07 pm, "Peter Bromberg [C# MVP]"
<pbromb...@nospammin.yahoo.comwrote:
There are settings in IE to "disable script debugging" which suppresses
these dialogs. Since the WebBrowser control wraps IE, you would probably
need to find the Registry entries to modify programmatically for your app.
Peter

"Dom" <dolivas...@gmail.comwrote in message

news:70**********************************@m44g2000 hsc.googlegroups.com...
I have a prgram with a webBrowser control. The user can click on a
Linked Reference and the webBrowser control shows that site.
Sometimes the URL (not my program, but the URL I am browsing to) has
an "error on page", eg, a javascript error. My program then gives a
dialog box, stating the error, and all my users think I wrote a crummy
program.
IE somehow gets around this. It will simply write the phrase "error
on page" at the status bar along the bottom of the IE window. So
somehow it is catching the error and ignoring it.
Can I do this with the WebBrowser Control? I do not see an event like
"ErrorOnPage" that I can trap and handle.
TIA,
Dom- Hide quoted text -

- Show quoted text -
Your reply made me think that maybe I should be looking for a property
and not an event. Then I found a property called
"ScriptErrorsSurpressed", and that seems to have done the trick.
Dom

Jun 27 '08 #4

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

Similar topics

19
by: Mark Gross | last post by:
I am attempting to programatically drive a Lotus Notes web application from a VB.NET database application (who wants to rekey information in one database into someone else's web page for entry to...
0
by: te.richardson | last post by:
I want to write a screensaver that plays powerpoint presentations. So I have a form with a webbrowser control. Is there any way to get the containing form to know when the user has moved the mouse...
1
by: AMDRIT | last post by:
Hi gang, this is pretty critical to me. Any help you can provide is appreciated. I have a WebBrowser control placed on a form. I am not getting the same results as I am in IE. Here is the...
2
by: nupur.agarwal29 | last post by:
Hi, I am using System.Windows.Forms.Webbrowser control in my application. For the Ajax based sites like live.com, the webbrowser control processes and renders the javascript requests, even after...
5
by: mabond | last post by:
Hi recently read a posting and reply about Excel processs still running after the Appliction.Quit was called. Thought I might be able to use the same...
4
by: Steve Richter | last post by:
I would like to build an HTML stream as a string and have the WebBrowser control render that HTML. Then on PostBack, or whatever it is called, I would like my code to be the one that receives what...
18
by: Zytan | last post by:
I have multiple threads writing to WebBrowser (using a function that checks InvokedRequired, and if so, invokes itself on the WebBrowser thread) and they are getting deadlocked. They only...
4
by: David | last post by:
I'm using the AxSHDocVw.WebBrowser control to download data from a webpage at work (it's an internal page on my company's intranet). The page produces a runtime error after a while and the...
5
by: kimiraikkonen | last post by:
Hi, I couldn't find a necessary class which shows when mouse hovers on a link in Webbrowser control. Think of there's a status bar(text), when mouse comes on a link, the URL must be shown in...
11
by: kimiraikkonen | last post by:
Hi there, I needed to use MouseOver event on Webbrowser which is NOT provided by webbrowser control natively(what a disappointment), so i decided to go with another route to simulate this like: ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.