mixam24 / open-hardware-monitor

Automatically exported from code.google.com/p/open-hardware-monitor
0 stars 0 forks source link

program vb net temperature motherboard #573

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
excused for very bad English, I am using a translator.
I have a plan vb net in which I need all the sensors CPU, VGA, files mother. 
for the CPU and VGA no problem instead I do not succeed to recover the sensors 
of the Mainboard I need the help!
place the code, many thanks to all

Imports System.Windows.Forms
Imports System.IO.Ports.SerialPort
Imports System.Collections.Generic
Imports System.Text
Imports System.Timers
Imports OpenHardwareMonitor.Hardware
Imports OpenHardwareMonitor.Collections
Imports OpenHardwareMonitor
Imports System.Management

Public Class form1
Dim computer As New OpenHardwareMonitor.Hardware.Computer

Private Sub form1_Load(ByVal sender As System.Object, ByVal e As 
System.EventArgs) Handles MyBase.Load

For Each u As OpenHardwareMonitor.Hardware.IHardware In computer.Hardware
If u.HardwareType =OpenHardwareMonitor.Hardware.HardwareType.Mainboard Then
For Each ui As OpenHardwareMonitor.Hardware.IHardware In u.SubHardware

 If ui.HardwareType = HardwareType.SuperIO Then
  MsgBox(ui.Name)                  

                    End If
                Next
            End If
        Next
Private Sub cpu_Load(ByVal sender As System.Object, ByVal e As 
System.EventArgs) Handles MyBase.Load

    End Sub
end class

Original issue reported on code.google.com by veroda1...@gmail.com on 26 Feb 2014 at 8:25