Simple Way To Check For a Network Connection

Category:
Network/Internet
Type:
Snippets
Difficulty:
Intermediate
Author:
Anonymous

Version Compatibility: Visual Basic.NET

More information:
This boolean function is an easy way to look for a network connection in VB.NET. You can easily test this function by calling the function in MessageBox.Show in the load event of the Form object.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: