Hello, we are really happy that you have reached us. However, since you are viewing the forum as a visitor, you cannot benefit from many features of the forum. How about taking advantage of all the features exclusive to our members by registering? You can register right now, taking just 2 minutes of your time. We would love to see you among us.
Merhaba Arkadaşlar, Ben Bir Uygulama Tasarlıyorum ve Bu Uygulamaya Monitorüm Kaç Hz Göster Diye Bir Button Koyuyorum Buttona Basılınca Monitör Hz'si Labele Yazılmasını İstiyorum. visual basic.net kod olarak atarsanız sevinirim teşekkürler
Monitörünüzün yenileme hızını da bu şekilde alabilirsiniz. Bunun için aşağıdaki kodu kullanabilirsiniz:
31:
Private Sub btnMonitörHz_Click(sender As Object, e As EventArgs) Handles btnMonitörHz.Click
' Monitörün yenileme hızı için bir WMI sorgusu oluşturun
Dim query As String = "SELECT * FROM WmiMonitorBasicDisplayParams"
' WMI nesnelerini almak için bir ManagementObjectSearcher oluşturun
Dim searcher As New ManagementObjectSearcher(query)
' İlk nesneyi alın
Dim obj As ManagementObject = searcher.Get().OfType(Of ManagementObject)().First()
' Yenileme hızı özelliğini alın ve Label kontrolüne yazdırın
Dim refreshRate As String = obj("RefreshRate").ToString() & " Hz"
lblMonitörHz.Text = refreshRate
End Sub
Bu kod, WMI aracılığıyla monitörünüzün yenileme hızı bilgisini alır ve Label kontrolünde görüntüler.
Umarım bu yardımcı olmuştur. Başka sorularınız varsa lütfen sormaktan çekinmeyin.
Post automatically merged by the system:
Status
Not open for further replies.
SPAM IS FORBIDDEN!
SPAMMERS ARE BANNED FROM THE FORUM AND CANNOT USE ANY OF THE CHEATS
For example: thanks, thx, very good, asdqwe, working, ty and so on!
For example: Writing the same message over and over. thanks, thx and so on!
Copying and copying someone else's message is prohibited.
It is forbidden to send messages to increase the number of comments on threads that you have no knowledge of.
Write your own opinion when commenting!
If you see spam message, please let us know with the REPORT button!