Re: Error triggered by navigation

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I finally found a solution to that problem. Instead of using the WebBrowser
control on a form, I am using the InternetExplorer object. It has all the
same properties and methods, so there was little changes needed. Works fine.
Thanks for your input.



"Leslie Milburn" wrote:


"JonWayn" <JonWayn@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:0B9E35C6-645C-4E36-8B4E-7A6DC482E13A@xxxxxxxxxxxxxxxx
Before I even read your reply, I went in a unchecked "Disable script
debugging (IE)". The other one wasnt checked. So I left them both
unchecked
and tried running my program again. It didnt solve the problem. After
reading
your response, I went back in and checked them both. Now I get a slightly
different box, just as frequently nonetheless.

I have no control over the contents of the website. Also, if I open IE and
use the website from the user interface, I do not get those errors.


Jon,

You may need to implement IOleCommandTarget and in particular the Exec
function where you can intercept the command which displays script errors by
default. Heres a code snippet:

HRESULT STDMETHODCALLTYPE Target_Exec(IOleCommandTarget FAR* This,
const GUID __RPC_FAR *pguidCmdGroup,
DWORD nCmdID,
DWORD nCmdexecopt,
VARIANT __RPC_FAR *pvaIn,
VARIANT __RPC_FAR *pvaOut)
{
// See docobj.h for OLECMDID values

if (nCmdID == OLECMDID_SHOWSCRIPTERROR) {
V_BOOL(pvaOut) = VARIANT_TRUE;
return S_OK;
}
return OLECMDERR_E_NOTSUPPORTED; // Let the default handler have it
}

Leslie.




.



Relevant Pages

  • Re: Error triggered by navigation
    ... I have no control over the contents of the website. ... function where you can intercept the command which displays script errors by ... DWORD nCmdID, ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: Error triggered by navigation
    ... browser control on a form, and not when I open IE as a window, am I likely to ... involves creating some object from a class and responding to events that way. ... I have no control over the contents of the website. ... DWORD nCmdID, ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: http-equiv caps & spacing in Apache 1.3.36
    ... I don't control the server; ... Authoring is a form of programming. ... A page of HTML/XHTML/XML is a page of source code, ... what W3C had on its website. ...
    (comp.infosystems.www.servers.unix)
  • Re: ASP.NET 2.0 "Website" vs. 1.1 "Web Application"
    ... I use both WebSite and Web Application Projects, ... how would I go about referencing a control created in another ... Juan T. Llibre, asp.net MVP ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ASP.NET 2.0 "Website" vs. 1.1 "Web Application"
    ... Seems almost like a step backwards to go to "website" from "web ... nor do I like the colleciton of strangely named assemblies. ... its personal preference and I use both app types - but that's a short ... how would I go about referencing a control created in another ...
    (microsoft.public.dotnet.framework.aspnet)