VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Default Browser

FluffyDave  (2 Submissions)   VB function enhancement   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

A simple API call to open up the default browser to the url of your choice. VERY simple and useful code.

Inputs
URL string, hwnd

API Declarations
'API for OpenBrowser
Public Const SW_SHOWDEFAULT = 10
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

Rate Default Browser (4(4 Vote))
Default Browser.bas

Default Browser Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters