
Patrice,
Ok ?a marche, il me manque encore 5 param?tres, voir dans le code
sous-cit? :
' cle3Gusb form1
Option Explicit On
Imports System.Net.NetworkInformation
Public Class Form1
' IL ME MANQUE 5 ELEMENTS
' - ?tat connexion : actif ou inactif (pour calcul dur,e)
' - adresse IP local PC
' - nom utilisteur PC
' - SSID nom r,seau wifi
' - Vitesse de d,bit
Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles MyBase.Load
Dim Statistics As IPv4InterfaceStatistics
Dim t(9) As String
Dim p(9)
For Each NetInterface As NetworkInterface In
System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces()
If NetInterface.NetworkInterfaceType = NetworkInterfaceType.Wireless80211
Then
p(1) = NetInterface.Description
t(1) = "Interface : " & p(1) & vbCrLf
Statistics = NetInterface.GetIPv4Statistics
p(2) = System.Math.Round(Statistics.BytesSent / 1048576, 2)
t(2) = "Sortants : " & p(2) & " Mo" & vbCrLf
p(3) = Math.Round(Statistics.BytesReceived / 1048576, 2)
t(3) = "Entrants : " & p(3) & " Mo" & vbCrLf
p(4) = Math.Round(p(2) + p(3), 2)
t(4) = "Total IO : " & p(4) & " Mo" & vbCrLf
End If
Next
TextBox1.Text = t(1) & t(4)
TextBox1.Refresh()
End Sub ' form1
End Class
Si tu peux y faire quelque chose, merci, cordialement ;o)
-
Logiciels, romans, contacts : http://irolog.free.fr
_______________________
.
.