How do i open up an html page from visual basic? I just want to click a button and have ie pop up with the page open.
Printable View
How do i open up an html page from visual basic? I just want to click a button and have ie pop up with the page open.
use the ShellExecute API for that :)
VB Code:
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_NORMAL = 1 Private Sub Command1_Click() ShellExecute Me.hwnd, "Open", "http://www.google.com", 0, "C:\", SW_NORMAL End Sub