PapyJo-------------------------------
Réponse au message :
-------------------------------
>
>

>
PapyJo>
>
> -------------------------------
> Réponse au message :
> -------------------------------
>
> > comment savoir si la connexion internet est en cours ? (si les pages peuvent etre ouvertes)
>
Copiez ce petit bout de code.
Private Declare Function InternetGetConnectedStateEx Lib "wininet.dll" (ByRef lpdwFlags As Long, ByVal lpszConnectionName As String, ByVal dwNameLen As Integer, ByVal dwReserved As Long) As Long
Private Sub Form_Load()
Ret = InternetGetConnectedStateEx(Ret, sConnType, 254, 0)
If Ret = 1 Then
Label1.Caption = "Connecté"
Else
Label1.Caption = "déconnecté"
End If
End Sub
C'est du tout cuit ...........Salut PapyJo