Results 1 to 2 of 2

Thread: Hyperlink on a Form ????

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840

    Post

    How do I put a hyperlink on a form (with a label or button) so that when clicked it will open a webpage in the systems default browser.

    I tried the "Implements Hyperlink" statement and it crashed

    Thanks
    Paul Dwyer
    Network Engineer
    Aussie In Tokyo

    Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)

  2. #2

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840
    Forget it... I Found it

    Code:
    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
    
    
    Call ShellExecute(0&, vbNullString, "http://www.somewhere.com/", vbNullString, vbNullString, vbNormalFocus)
    [Edited by Paul282 on 05-15-2000 at 10:56 PM]
    Paul Dwyer
    Network Engineer
    Aussie In Tokyo

    Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width