Answers for "check if internet is connected with c# winforms"

0

check if internet is connected with c# winforms

[System.Runtime.InteropServices.DllImport("wininet.dll")]
private extern static bool InternetGetConnectedState(out int Description, int ReservedValue);

public static bool CheckNet()
{
     int desc;
     return InternetGetConnectedState(out desc, 0);         
}
Posted by: Guest on June-09-2021

Code answers related to "check if internet is connected with c# winforms"

Browse Popular Code Answers by Language