[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 336
  • Last Modified:

opening internet explorer from a vb.net service

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?

Sean
0
bullrout
Asked:
bullrout
3 Solutions
 
ptakjaCommented:
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", "http://www.yoursite.com")  '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.

0
 
GlomCommented:
Hi,

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.
0
 
prakash_prkCommented:
Are you try to access a specfic page from vb.net service

use webclient class to download the file

Dim myWebClient As New WebClient()

myWebClient.DownloadFile("http://google.com/", fileName)

..

Regards
Prakash

0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now