How to put a clickable link on a VB Form

You can talk about VB programming here

Ehhhhh?!?!

Postby Guest » Wed Nov 24, 2004 10:02 am


well i use

place this in the form

Code: Select all
OpenURL "http://www.PalTalk-Hacks.com"


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


place this in a module

Code: Select all
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:
Code: Select all
OpenURL "mailto:Syxx@PalTalk-Hacks.com"


but they need outlook express to send the email :P
Guest
 

Postby Kittenless » Fri Nov 26, 2004 6:19 am

or any program that supports the mailto..

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

so not just Outlook express.. :)
Kittenless
imFiles Newbie
imFiles Newbie
 
Posts: 10
Joined: Tue Nov 23, 2004 3:07 pm

Postby CrAcKeR-NiNi » Sun Dec 12, 2004 4:27 pm

Nice! :lol:
- KosovaHackersGroup ::

No PV Messages Please!
CrAcKeR-NiNi
imFiles Newbie
imFiles Newbie
 
Posts: 21
Joined: Sun Dec 12, 2004 4:09 pm
Location: Germany


Return to Visual Basic Programming

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests