Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows Forms
  4. Problem with Window Service and InternetExplorerClass Object

Problem with Window Service and InternetExplorerClass Object

Scheduled Pinned Locked Moved Windows Forms
csharpasp-netcomhelp
3 Posts 2 Posters 8 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Amit Agarrwal
    wrote on last edited by
    #1

    hello, i have made a window service for my some xyz purpose and its working fine.but the problem is that InternetExplorerClass IE = new InternetExplorerClass(); IE.Visible = true; IE.DocumentComplete += new DWebBrowserEvents2_DocumentCompleteEventHandler(IE_DocumentComplete); isDocumentComplete = false; object empty = ""; IE.Navigate("www.google.com", ref empty, ref empty, ref empty, ref empty); when i'm using this Code with Window Service this code is not working even IE.navigate function is not navigating the site or not openning the IE browser..while when i use use this code with simple asp.net with c# project its working fine. suggestion are most welcome. thanks and regards Amit Agarwal

    Dotnet

    M 1 Reply Last reply
    0
    • A Amit Agarrwal

      hello, i have made a window service for my some xyz purpose and its working fine.but the problem is that InternetExplorerClass IE = new InternetExplorerClass(); IE.Visible = true; IE.DocumentComplete += new DWebBrowserEvents2_DocumentCompleteEventHandler(IE_DocumentComplete); isDocumentComplete = false; object empty = ""; IE.Navigate("www.google.com", ref empty, ref empty, ref empty, ref empty); when i'm using this Code with Window Service this code is not working even IE.navigate function is not navigating the site or not openning the IE browser..while when i use use this code with simple asp.net with c# project its working fine. suggestion are most welcome. thanks and regards Amit Agarwal

      Dotnet

      M Offline
      M Offline
      Marcus J Smith
      wrote on last edited by
      #2

      Why dont you try this approach.

      System.Diagnostics.Process.Start("www.google.com")

      That way you allow their default browser to open up the web page based on file associations.


      CleaKO

      "I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that.'" - Tommy (Tommy Boy)
      "Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)

      A 1 Reply Last reply
      0
      • M Marcus J Smith

        Why dont you try this approach.

        System.Diagnostics.Process.Start("www.google.com")

        That way you allow their default browser to open up the web page based on file associations.


        CleaKO

        "I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that.'" - Tommy (Tommy Boy)
        "Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)

        A Offline
        A Offline
        Amit Agarrwal
        wrote on last edited by
        #3

        hi, thanx for the reply, i cann't use this approach becoz i have to further use InternetExplorer Class Properties, why is n't working....

        Dotnet

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups