IDocHostShowUI.ShowMessage randomly raised in c#

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Adam Tuliper (amt_at_gecko-software.com)
Date: 10/02/04

  • Next message: Alex Blekhman: "Re: How to host WebBrowser control in MTA application?"
    Date: Sat, 2 Oct 2004 16:40:41 -0700
    
    

    Scenario:
    C# form implements IDocHostShowUI. I navigate to a test
    page I created with a simple alert() in it. In
    ShowMessage, I display a messagebox with my own caption on
    it. I then return 0 to tell IE not to display its own
    dialog. My ShowMessage gets called completely randomly. I
    click refresh say 3,4,5 times, nothing (the default IE
    dialog is displayed), try it again, my custom messagebox
    shows. Are there any known issues with calling back to
    intefaces in c# from com? The interface seems to be
    defined correctly, as it works, but only its random.
    Sometimes event wiring seems to get lost as well. Weird.
    Any thoughts?


  • Next message: Alex Blekhman: "Re: How to host WebBrowser control in MTA application?"

    Relevant Pages

    • IDocHostShowUI.ShowMessage randomly raised in c#
      ... I navigate to a test ... I then return 0 to tell IE not to display its own ... My ShowMessage gets called completely randomly. ... >dialog is displayed), try it again, my custom messagebox ...
      (microsoft.public.inetsdk.programming.webbrowser_ctl)
    • Re: Handling Open Exception
      ... the display. ... One other thing -- if I put my own showmessage ) ... Could the exception be happening in the stored ... and stored procedure would fail. ...
      (borland.public.delphi.database.ado)
    • Re: Adding MessageBox to web application
      ... but it doesn't display the alert: ... > How can I add a Messagebox to my web application? ... > when the table's empty. ...
      (microsoft.public.dotnet.languages.csharp)
    • Re: Question on style.display
      ... #divx {display: block} ... but the alert displays ... Is the JS application of style.display different from that of CSS? ... Hence when you were reading the style property you were looking for any attributes that had been specifically set to override any that might come from other CSS rules. ...
      (microsoft.public.scripting.jscript)
    • Re: Macro Control
      ... wasn't sure if I had to use properties to control the macro itself, ... I want it to take control to display an alert like "Station 1 ... Error CU.xls only has a single sheet that is ONLY used ...
      (microsoft.public.excel.programming)