http://openhardwaremonitor.org/
Imports System.Management
Imports System
Imports OpenHardwareMonitor
Imports OpenHardwareMonitor.Hardware
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If Timer1.Enabled = True Then
Timer1.Enabled = 0
Else
Timer1.Enabled = 1
End If
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Dim cp As New Computer()
cp.Open()
cp.CPUEnabled = True
Dim Info As String = ""
For i As Integer = 0 To cp.Hardware.Count() - 1
If cp.Hardware(i).HardwareType = HardwareType.CPU Then
Info += " Processor: " & Trim(cp.Hardware(i).Sensors(5).Value) & vbCrLf
End If
Next
Label1.Text = Info
End Sub
End Class
'프로그래밍언어 > VB.NET' 카테고리의 다른 글
윈도우서비스 종료& 시작 (0) | 2017.03.06 |
---|---|
멀티쓰레드 활용간 오류시 임시처방 CheckForIllegalCrossThreadCalls = False (0) | 2016.10.25 |
webbrowser 체크박스 체크 (0) | 2014.11.05 |
프로세스종료 (0) | 2014.10.19 |
스레드간 텍스트박스,레이블 등 값변경 (0) | 2014.09.13 |