Advertisement
Amine-AL

Code Vb.Net

Mar 5th, 2014
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.45 KB | None | 0 0
  1. Public Class Form1
  2.     Private Declare Function InternetGetConnectedState Lib "wininet.dll" (ByRef ld As Integer, ByVal dr As Integer) As Integer
  3.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  4.         If InternetGetConnectedState(0, 0) Then
  5.             MsgBox("You Are Connected With Internet")
  6.         Else
  7.             MsgBox("You Aren't Connected With Internet")
  8.         End If
  9.     End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement