VB NET Check internet connection

 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")


Popular posts from this blog

Visual Basic Online Course DevExpress 12.2.4 full for Visual Studio 2010

VB .NET Google Drive Api Source Code Example

Visual Basic Online Course - The Microsoft.ACE.OLEDB.12.0 provider is not registered on the local machine

Visual Basic Compare Two Treeviews and return differences

Visual Basic Online Courses DataGridView Add Edit Delete

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