View Full Version : Visual Basic

10-08-2001, 01:39 AM

I have a stupid School project to do and i have finished it except i need a button that will load up my web site... I cant seem to find something simillar to ShellExecute to use with Visual Basic. So does anyone here know how to link to a web site using Visual Basic.

Thanks Heaps.

10-08-2001, 01:50 AM
Public 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

Call ShellExecute(Me.Hwnd, "Open", "http://yourwebsitehere.com", "", "", 1)