by Edgar Santiago (4 Submissions)
Category: Internet/HTML
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Thu 30th May 2002
Date Added: Mon 8th February 2021
Rating:
(1 Votes)
How to Load your Default WebBrowser with the TextBox Control:
API Declarations
Declare Function ShellExecute Lib "Shell32.dll" Alias "ShellExecuteA"(ByVal hwnd As Long,ByVal mxOperation As String,ByVal mxParameters As String,ByVal mxDirectory As String,ByVal nShowCmd As Long) As long
[GeneralDeclaration]
Const comSwNoraml = 1
Private Sub cmdLounch_Click()
ShellExecute hwnd, "Open", Text1.Text ,vbNullString,vbNullString,ComSwNormal
This Function will Load your Default Browser with the Web Address on the Text Box.
Test:TextBox Type: "http://www.microsoft.com/"
Click the Command Button: