VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Open a web browser

by Mark (6 Submissions)
Category: Internet/HTML
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (4 Votes)

This is a simple way to run internet explorer from within VB and have it surf automatically to the webpage you specify.

Rate Open a 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
Const conSwNormal = 1

ShellExecute hwnd, "open", "http://webaddress.com", vbNullString, vbNullString, conSwNormal

Download this snippet    Add to My Saved Code

Open a web browser Comments

No comments have been posted about Open a web browser. Why not be the first to post a comment about Open a web browser.

Post your comment

Subject:
Message:
0/1000 characters