PDA

Click to See Complete Forum and Search --> : default web browser


nosferatu
Aug 9th, 2002, 06:58 PM
hi, how can I launch the default web browser on a system from a vb.net program?

hellswraith
Aug 9th, 2002, 08:20 PM
Basically, you are going to have your app open a html document or something. The default browser will show automatically.

I don't have the code to do that, I will look around for it though. In VB6 is was the ShellExecute API function.

hellswraith
Aug 9th, 2002, 08:39 PM
Here you go, you might have to change the folder that the exe is in for your computer...

Shell("C:\Program Files\Internet Explorer\IExplore.exe", AppWinStyle.NormalFocus)

hellswraith
Aug 9th, 2002, 08:40 PM
Sorry that doesn't launch the default browser, but maybe it gets you started.

MrPolite
Aug 9th, 2002, 09:03 PM
this works on my comp... I think it would still work if you have a browser other than IE. But still it shouldnt be the best way


Dim p As New Process()
p.Start("http://www.yahoo.com")

PT Exorcist
Aug 9th, 2002, 09:57 PM
im sure it will work

nosferatu
Aug 10th, 2002, 07:04 AM
thanks MrPolite