Results 1 to 3 of 3

Thread: goto web

  1. #1

    Thread Starter
    Banned jhermiz's Avatar
    Join Date
    Jun 2002
    Location
    Antarctica
    Posts
    2,492

    goto web

    how do I go to a website in vb?

    meanining say i have a string

    strWeb="http://www.yahoo.com"

    Should I use shell on this ?

    Jon

  2. #2

    Thread Starter
    Banned jhermiz's Avatar
    Join Date
    Jun 2002
    Location
    Antarctica
    Posts
    2,492
    Shell ("c:\program files\internet explorer\iexplore.exe" & " " & rst("SPISite").Value)

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Maybe you'd prefer this:

    VB Code:
    1. 'General:
    2. Private Declare Function ShellExecuteAny Lib "shell32.dll" Alias "ShellExecuteA"
    3.    (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String,
    4.    ByVal lpParameters As Any, ByVal lpDirectory As Any, ByVal nShowCmd As Long)
    5.    As Long
    6.  
    7.  
    8. 'code
    9. Call ShellExecute (hWnd, "open", "http://www.mendhak.com/", vbNullString, vbNullString, 1)

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