Ver Mensaje Individual
  #2 (permalink)  
Antiguo 18/12/2010, 09:46
Avatar de jaullo
jaullo
 
Fecha de Ingreso: abril-2009
Mensajes: 994
Antigüedad: 15 años
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); }

}
__________________
http://geekswithblogs.net/jaullo/Default.aspx
Si te he ayudado regalame Karma positivo!!!