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 Courses DataGridView Add Edit Delete

Visual Basic 2010 Working With DataBase Full Project Example

VB .NET WebView2 WinForms tips

Visual Basic .Net - Button Sound / Music Play

Visual Basic 2010 Math Functions