Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / May 2008

Tip: Looking for answers? Try searching our database.

A problem with the WebBrowser control

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dom - 13 May 2008 21:04 GMT
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
Peter Bromberg [C# MVP] - 13 May 2008 21:07 GMT
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

>I have a prgram with a webBrowser control.  The user can click on a
> Linked Reference and the webBrowser control shows that site.
[quoted text clipped - 13 lines]
> TIA,
> Dom
Dom - 13 May 2008 21:50 GMT
On May 13, 4:07 pm, "Peter Bromberg [C# MVP]"
<pbromb...@nospammin.yahoo.com> wrote:
> There are settings in IE to "disable script debugging" which suppresses
> these dialogs. Since the WebBrowser control wraps IE, you would probably
[quoted text clipped - 20 lines]
>
> - 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
Peter  Bromberg [C# MVP] - 14 May 2008 03:10 GMT
Excellent. Thanks for that discovery, in case I ever need it.
Peter
On May 13, 4:07 pm, "Peter Bromberg [C# MVP]"
<pbromb...@nospammin.yahoo.com> wrote:
> There are settings in IE to "disable script debugging" which suppresses
> these dialogs. Since the WebBrowser control wraps IE, you would probably
[quoted text clipped - 24 lines]
>
> - 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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.