15,916,693 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by bisharbn (Top 2 by date)
bisharbn
16-May-11 11:14am
View
How you are showing the image on the Usercontrol......i mean using any image server control or any other method....
bisharbn
16-May-11 11:09am
View
Deleted
if u need the code vb.net
refer this
Private Declare Function InternetGetConnectedState Lib "wininet" (ByRef dwflags As Long, ByVal dwReserved As Long) As Long
Private Const CONNECT_LAN As Long = &H2
Private Const CONNECT_MODEM As Long = &H1
Private Const CONNECT_PROXY As Long = &H4
Private Const CONNECT_OFFLINE As Long = &H20
Private Const CONNECT_CONFIGURED As Long = &H40
Private Const CONNECT_RAS As Long = &H10
Public Function IsWebConnected(Optional ByRef ConnType As String = "") As Boolean
Dim dwflags As Long
Dim WebTest As Boolean
WebTest = InternetGetConnectedState(dwflags, 0&)
Select Case WebTest
Case dwflags And CONNECT_LAN : ConnType = "LAN"
Case dwflags And CONNECT_MODEM : ConnType = "Modem"
Case dwflags And CONNECT_PROXY : ConnType = "Proxy"
Case dwflags And CONNECT_OFFLINE : ConnType = "Offline"
Case dwflags And CONNECT_CONFIGURED : ConnType = "Configured"
Case dwflags And CONNECT_RAS : ConnType = "Remote"
End Select
IsWebConnected = WebTest
End Function
http://www.bisharbn.me/2011/05/check-internet-connection-using-vb-net/