How to put a clickable link on a VB Form

Viewing 1 post (of 1 total)
  • Author
  • #11331

    well i use

    place this in the form

    OpenURL ""

    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 ""

    but they need outlook express to send the email 😛

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.