Can we detect the internet connection?
Means is it on or off?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Tanmay SarkarPosted Jul 9, 2010, 1:37 PM
using System.Net.NetworkInformation;
void Button1Click(object sender, EventArgs e)
{
bool mynetcon = System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable();
label1.Text= Convert.ToString(mynetcon);
}
If you have any other code please put here.
Thank you.