Results 1 to 4 of 4

Thread: How to put a Hyperlink on a Form?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2000
    Posts
    84
    How can I add a hyper link to a form? I can't find any information on this, but I've seen it done on apps.

    Thanks

  2. #2
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    try this:

    Code:
    x = shell("www.vbworld.net", 0)
    NXSupport - Your one-stop source for computer help

  3. #3
    Guest
    Two ways of doing this. Use a Shell function:

    Code:
    Shell ("start http://www.vb-world.net"), vbHide
    or use the ShellExecute api function.

    Code:
    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 Const SW_SHOWNORMAL = 1
    
    Usage
    
    
    ShellExecute Me.hwnd, vbNullString, "http://www.vb-world.net", _
    vbNullString, "c:\", SW_SHOWNORMAL
    dimava, the code you provided will not work because it has nothing to Shell it. The Shell function is for supporting exe's only. Unless you Shell the exe along with a command line parameter, as showed in the first example I gave.

  4. #4
    Member
    Join Date
    Oct 2000
    Posts
    47

    Red face one more way

    one more way to do this is to simply using the
    HyperLink component



    e-mail : [email protected]
    DealMan

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