How to put a clickable link on a VB Form

well i use

place this in the form

OpenURL "http://www.PalTalk-Hacks.com"

you put that for a label a picture a textbox ect ect….

place this in a module

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
Public Function OpenURL(ByVal URL As String) As Long
OpenURL = ShellExecute(0&, vbNullString, URL, vbNullString, vbNullString, vbNormalFocus)
End Function

you can name the module like ModURL is what i name it 😉

you can also use that for a email link to by adding mailto:

OpenURL "mailto:Syxx@PalTalk-Hacks.com"

but they need outlook express to send the email 😛

3 thoughts on “How to put a clickable link on a VB Form

Leave a Reply

You must Register or Login to comment on How to put a clickable link on a VB Form