Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Internet Connection with VB 6

Internet Connection with VB 6

Scheduled Pinned Locked Moved Visual Basic
tutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jayachandra c
    wrote on last edited by
    #1

    Hi All, here just i want to know how to get the Internet connection Status in VB6 whether it is working/not working. if yes, let me also know how it is? Thanks in advance. Jay

    L 1 Reply Last reply
    0
    • J jayachandra c

      Hi All, here just i want to know how to get the Internet connection Status in VB6 whether it is working/not working. if yes, let me also know how it is? Thanks in advance. Jay

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      jayachandra.c wrote:

      here just i want to know how to get the Internet connection Status in VB6 whether it is working/not working.

      The most used way would be using InternetGetConnectedState API. An example can be found here[^]. Alternatively, you could launch the Ping command and capture it's output. If you can Ping Google, you're online :)

      I are Troll :suss:

      R 1 Reply Last reply
      0
      • L Lost User

        jayachandra.c wrote:

        here just i want to know how to get the Internet connection Status in VB6 whether it is working/not working.

        The most used way would be using InternetGetConnectedState API. An example can be found here[^]. Alternatively, you could launch the Ping command and capture it's output. If you can Ping Google, you're online :)

        I are Troll :suss:

        R Offline
        R Offline
        rhuiden
        wrote on last edited by
        #3

        I would say that is not necessarily true. It depends on what you mean by 'working'. You could be connected but have DNS issues that would prevent a successful ping. I only say that because I did have DNS issues and ran into this often. :(

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups