hi, how can I launch the default web browser on a system from a vb.net program?
Printable View
hi, how can I launch the default web browser on a system from a vb.net program?
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.
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)
Sorry that doesn't launch the default browser, but maybe it gets you started.
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
VB Code:
Dim p As New Process() p.Start("http://www.yahoo.com")
im sure it will work
thanks MrPolite