System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable()
if(System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable() == true) { //execute command...................... there are thousand of them.... } else { MessageBox.Show("NO LAN Available"); return; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)