How to put a clickable link on a VB Form

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #190156
    Admin
    Administrator

    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 😛

    #190159
    Kittenless
    Member

    or any program that supports the mailto..

    Yahoo mail on XP takes the mailto:
    as does Gmail..

    so not just Outlook express.. 🙂

    #190158
    CrAcKeR-NiNi
    Member

    Nice! 😆

    #190157
    Noob3
    Member

    This is the best example I could find on the internet !!!!! 

    Thanks

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.