James Longstreet
April 2nd, 2001, 03:07 PM
Does anyone know how I can determine the default web browser using VB.
Jim Hewitt
Software Developer
Liberty Tax Service
www.LibertyTax.com
shree
April 2nd, 2001, 08:23 PM
Here's how you run the default web browser
private Declare Function ShellExecute Lib "shell32.dll" Alias _
"ShellExecuteA" (byval hwnd as Long, byval lpOperation as string, _
byval lpFile as string, byval lpParameters as string, byval lpDirectory _
as string, byval nShowCmd as Long) as Long
private Const SW_SHOW = 5
private Sub Command1_Click()
ShellExecute me.hwnd, "open", "about:blank", vbNullString, vbNullString, SW_SHOW
End Sub
Just querying the default browser, I don't know how to do it.