Results 1 to 3 of 3

Thread: How to go to a web site from vb???

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2003
    Posts
    13

    How to go to a web site from vb???

    If I want to go to yahoo.com by clicking a button from my vb project how can i do it?

    Or how to run internet explorer from a vb project.

  2. #2
    Frenzied Member Memnoch1207's Avatar
    Join Date
    Feb 2002
    Location
    DUH, Guess...Hint: It's really hot!
    Posts
    1,861
    VB Code:
    1. Private Sub Command1_Click()
    2.      Shell "explorer.exe [url]http://www.mysite.com[/url]"
    3.      'Opens it in Internet Explorer
    4. End Sub
    Being educated does not make you intelligent.

    Need a weekend getaway??? Come Visit

  3. #3
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    VB Code:
    1. Private Sub Command1_Click()
    2.      ShellExecute "http://www.mysite.com"
    3.      'Opens it in the user's default browser
    4. End Sub
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

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