Author

Ahmed Samir

Evry1falls is my online name

Visual Basic Online Course Check internet connection

Visual Basic Online Course Check internet connection 5 of 5

 Check Internet Connection using VB 2010

Using VB 2010 Check for Internet Connection
Using VB.NET to check Internet Connection status
This is a very simple example of how to check if there is an internet connection available for your machine (LapTop, PC) using VB 2010 Programming Language.

- Project Design :

1) Create new project, (save it)
2) Create new Windows Application form (Form1)
3) Place a Label (Label1) and Timer (Timer1) on your Form (Form1).
VB.NET Check Internet Connection
VB.NET Check Internet Connection

- Coding

In the following VB.NET Code I'm using two Functions to (Boolean) :
  1. Check internet connection using Computer.Network.Ping("google.com")
  2. Check internet connection Using stream = client.OpenRead("http://www.google.com")


Comment Via facebook

Popular posts from this blog

Visual Basic 2010 with MS-Access Database

Visual Basic 2010 Read/Write Command Prompt

Visual Basic Compare Two Treeviews and return differences

Visual Basic Online Course The following control could not be licensed: TxTextControl.TextControl

Visual Basic 2010 Math Functions