[VB] Button click to link

Custom Title Activated
Loyal Member
Joined
Mar 28, 2006
Messages
2,383
Reaction score
0
In VB I have a button, and I want it where after you click it, it will open up a URL.

I've google'd and can't seem to find it, so if someone could tell me how/what the code is that'd be great.
 
You can do easy way and make a form with a web browser and when u click button form pops up with web browser....
then u just make it
browser.navigate <website url>
takes like 5 min.... look for a vb browser to learn how to doit.
 
Like Username1 said ShellExecute. Since your using Visual Basic you'll have to declare it first so here,


For Visual Basic .NET

Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Int32, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Int32) As Int32


For Visual Basic

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
 
Back