Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

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);         
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: how to add item in list at first position c# 
Csharp :: set request timeout c# 
Csharp :: unity 3d camera movement script 
Csharp :: how to get text from textbox in windows form c# 
Csharp :: how to add a gameobject 
Csharp :: c# bitmap to array byte 
Csharp :: CS0101 
Csharp :: c# get directory name from filename 
Csharp :: dotnet call webapi 
Csharp :: Convert array of strings to List<string 
Csharp :: unity c# audio source 
Csharp :: c# select first value from list 
Csharp :: c# performance timer 
Csharp :: Gameobject.Find in unityC# 
Csharp :: get x and y of mouse uinty 
Csharp :: single line and multiline comments in c# 
Csharp :: how to remove white spaces from string in c# 
Csharp :: relaycommand 
Csharp :: c# foreach object in array json 
Csharp :: find how many digits a number has csharp 
Csharp :: set rotation unity 
Csharp :: what are access modifiers in c# 
Csharp :: get array from column datatable c# 
Csharp :: c# today without time 
Csharp :: linq query get last day of month 
Csharp :: how to close a form c# 
Csharp :: check if palindrome recursion in c# 
Csharp :: export list to excel c# 
Csharp :: c# get classes which inherits 
Csharp :: TimeZone in asp.net core 
ADD CONTENT
Topic
Content
Source link
Name
7+4 =