Open Website
Simple function to open a website
(See Below Code)
|
'Set the Function OpenURL that Will Open the Website When Called Private Declare Function OpenURL 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 'Prepare the Function Browse that will Call OpenURL to Open the Website Public Function Browse(URL As String) 'Then just call the function Browse when ready, with the required website as the parameter Private Sub Command1_Click() |
(Copy and Paste this code into your Visual Basic project)
*Want to join the C0D3 MA5T3R e-mail list?*
Get all the latest code news and articles, and even submit your own.
You can sign-up for free below (you may opt-out at any time):