Results 1 to 13 of 13

Thread: Internet...

  1. #1

    Thread Starter
    Registered User
    Join Date
    Jun 2005
    Posts
    87

    Internet...

    How do I open the Internet?

  2. #2

  3. #3
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: Internet...

    Quote Originally Posted by stealth black
    How do I open the Internet?


    No offense, but that quote is actually pretty funny.

    If it has to do with VB, although you left no details on what you plan to access the internet with, then either do what Rhinobull is saying, if you plan on making a webbrowser, or use a Winsock control or DirectPlay to work with the internet doing networking stuff.

  4. #4
    Lively Member
    Join Date
    Dec 2005
    Posts
    113

    Re: Internet...

    Hey, I agree that is pretty funny.

    If you want to load a URL in your webbrowser then the code below should do it.


    Global Declarations (Not in a Sub)
    VB Code:
    1. Private 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

    VB Code:
    1. Private Sub Command1_Click()
    2. Call ShellExecute(0&, vbNullString, "http://www.theurl.com", vbNullString, vbNullString, vbNormalFocus)
    3. End Sub

  5. #5

    Thread Starter
    Registered User
    Join Date
    Jun 2005
    Posts
    87

    Re: Internet...

    Hey guys, I found it! There's this big blue "e" on my deskto.....

    DJWK answered it for me... I'll be more specific next time.... LMAO

  6. #6
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: Internet...

    Quote Originally Posted by stealth black
    Hey guys, I found it! There's this big blue "e" on my desktop.....
    I don't think I believe what I see ... Is it me ???????

    MG, this IS the most rediculous thread ever, indeed !!!!!!!!!!!!!!!!!!!!!!


  7. #7
    Fanatic Member r0ach's Avatar
    Join Date
    Dec 1999
    Location
    South Africa
    Posts
    722

    Re: Internet...

    WHAT???

    Next thing you know, you'll be asking how to download the internet...

    r0ach™
    Don't forget to rate the post

  8. #8

  9. #9
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Internet...

    I think this is enough chatter.

  10. #10

    Thread Starter
    Registered User
    Join Date
    Jun 2005
    Posts
    87

    Re: Internet...

    Ok guys... I'm kidding... OMG

    What I should've posted was this:

    I am creating a tracking program that allows users to input a sales oreder number, and return a tracking number, cost, weight, etc... I would like for them to also be able to click a button and be taken directly to the tracking page for that tracking number. I have successfully created the string for bypassing the "terms agreement" and "tracking number input page", I'm not sure how to open IE with my command button...

    Rhino, I'm an intermediate programmer, but I'm a systems manager, so I think I would be pretty good at using Windows....

  11. #11
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: Internet...

    I don't really care who you are and what you are - if you've come to a programming forum then you better ask relevant question(s) and try to make yourself clear every time you post something.

    Regarding your last (clear) question - ShellExecute() should do it and jwk posted sample code for you.

    Best regards.

  12. #12
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Internet...

    stealth - I'd appologize for the others.... except that you have to admit the initial post does seem a bit.... noobish... and kinda rediculous. We have seen questions like that before where the poster was serious....

    at any rate, if you had posted your real problem initialy, you would have gotten better answers.
    Use the ShellExecute, passing in the URL you want. that will launch the user's default browser and navigate to that web page automaticaly.

    -tg
    * 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??? *

  13. #13

    Thread Starter
    Registered User
    Join Date
    Jun 2005
    Posts
    87

    Re: Internet...

    Rhino, please be sure that before you drop in on a post that your PRESENCE is relevant, which in this case it's not, as djwk had already answered my question.. And the only reason I mention who I am is because IT was relevent... You served no purpose in this post, but I do still respect your VB expertise, because you've assisted me before...

    Let's move on....

    Thanks Tech....

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