Portos67
Messages postés72Date d'inscriptionvendredi 25 février 2005StatutMembreDernière intervention14 janvier 2013
-
17 mars 2009 à 09:51
Portos67
Messages postés72Date d'inscriptionvendredi 25 février 2005StatutMembreDernière intervention14 janvier 2013
-
17 mars 2009 à 12:16
Bonjour à tous,
J'ai un soucis, lorsque je récupère les infos de la carte graphique d'un poste à l'aide de WMI, j'ai souvent la mauvaise carte qui apparrait c.a.d : Winvnc video hook driver, au lieu de ma carte graphique principal.
Y a t-il un moyen de lister les cartes disponibles ?
Voici mon code :
Dim sys3 As New ManagementObjectSearcher("Select * from Win32_VideoController")
Dim infographique As ManagementObject
For Each infographique In sys3.Get()
Label53.Text = infographique("Description").ToString
Dim variable10 As String = Mid(infographique("DriverDate").ToString, 1, 8)
Dim variable100 As String = Mid(variable10, 1, 4)
Dim variable101 As String = Mid(variable10, 5, 2)
Dim variable102 As String = Mid(variable10, 7, 2)
Label71.Text = variable102 & "/" & variable101 & "/" & variable100
Label67.Text = infographique("DriverVersion").ToString
Label54.Text = infographique("MaxMemorySupported")
Next
Portos67
Messages postés72Date d'inscriptionvendredi 25 février 2005StatutMembreDernière intervention14 janvier 20131 17 mars 2009 à 09:57
C'est bon je viens de trouver, je vous met la réponse :
Dim sys3 As New ManagementObjectSearcher("Select * from Win32_VideoController")
Dim infographique As ManagementObject
For Each infographique In sys3.Get()
ListBox1.Items.Add(infographique("Name").ToString)
Label53.Text = infographique("Description").ToString
Juste besoin de rajouter la ligne Item.add, c'était tout con désolé.