opening internet explorer from a service

Posted on 2004-11-15
Last Modified: 2010-04-24
Hi There,

I am wanting open & close internet explorer web browser and access a specific page from a vb .net service, does anyone have a code snippet on how to do this?

Question by:bullrout
    LVL 14

    Accepted Solution

    Do you want to actually open IE, or embed a web browser in your app.

    To open IE:

    Dim Proc as Process

    Proc = Procecss.Start("IEXPLORE.EXE", "")  'Start IE

    Call Proc.Kill           'Stop IE

    The line above assumes you have:

    Imports System.Diagnostics

    You can also just pass Process.Start a URL and it will open the web page in the default browser on the client PC.

    LVL 4

    Assisted Solution


    If your program runs as a service, you could have problem showing user interface (in this case, IE). Be sure that in the service configuration window, and under your Service config, you have cheched the Interact with desktop checkbox. Or nothing will ever appear.
    LVL 10

    Assisted Solution

    Are you try to access a specfic page from service

    use webclient class to download the file

    Dim myWebClient As New WebClient()

    myWebClient.DownloadFile("", fileName)




    Featured Post

    Courses: Start Training Online With Pros, Today

    Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

    Join & Write a Comment

    Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
    Introduction When many people think of the WebBrowser ( control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now