Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Adding a link to a form

I would like to add a link to a form and when clicked will take you to a web site.
Is there a control or code available?
[129 byte] By [jconan] at [2007-11-11 8:15:39]
# 1 Re: Adding a link to a form
Pls Find in Classic VB Section or .NET Section.. As far as I remember, there is one thread in these section as same as what you want...
If i found then let u know.

I found it..
http://forums.dev-archive.com/showthread.php?t=151032&highlight=link+lable

check it out...
Sync at 2007-11-11 17:25:41 >
# 2 Re: Adding a link to a form
hi mate,

vb6 is as follows

paste the below code into the form declaration section

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_SHOW = 5

and eith on a command button or label or whatever you wish paste the next bit of code

ShellExecute hWnd, "open", "http://www.google.com", vbNullString, vbNullString, SW_SHOW

there you go mate

no reference is needed for this ...

Rob(AKA Spumbu)
Spumbu1977 at 2007-11-11 17:26:43 >
# 3 Re: Adding a link to a form
http://www.google.com/search?q=vb+hyperlink+label+control
Phil Weber at 2007-11-11 17:27:42 >
# 4 Re: Adding a link to a form
I found it. check it out
http://forums.dev-archive.com/showthread.php?t=151032&highlight=link+lable
Sync at 2007-11-11 17:28:46 >
# 5 Re: Adding a link to a form
Thanks, Guys/Gals, got it working.
jconan at 2007-11-11 17:29:45 >