Hey,
The window basically hangs because you are using the same thread to download the file as well as updating the application.
When you are dealing with background work, it is always recommended to use
Thread [
^]and invoke the download method from there.
To ping you might use :
public static bool IsConnectedToInternet
{
get
{
Uri url = new Uri("yoururl")
string pingurl = string.Format("{0}", url.Host)
string host = pingurl
bool result = false
Ping p = new Ping()
try
{
PingReply reply = p.Send(host, 3000)
if (reply.Status == IPStatus.Success)
return true
}
catch { }
return result
}
}
:thumbsup: