![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
18/12/2010, 09:46
|
![Avatar de jaullo](http://static.forosdelweb.com/customavatars/avatar298871_1.gif) | | | Fecha de Ingreso: abril-2009
Mensajes: 994
Antigüedad: 15 años, 9 meses Puntos: 30 | |
Respuesta: coneccion a internet Hola,
Puedes usar algo asi
[DllImport("wininet.dll")]
private static extern bool InternetGetConnectedState(ref uint connected, uint reserved);
static uint uConnection = 0x20;
/// <summary>
/// Returns true if it have detected an active Internet connection.
/// </summary>
public static bool HasInternetConnection
{
get { return InternetGetConnectedState(ref uConnection, 0); }
} |