Welcome, Visitor!

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.

MONİTÖR KAÇ HZ GÖSTERME?

Status
Not open for further replies.
J

jescywip

Thread Starter
Super Member
Joined
Jun 25, 2022
Messages
154
Reaction score
5
Points
18
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
 
T

The Lady

ReynaCiĞköfte#8794
Ultra Member
Joined
Mar 23, 2021
Messages
727
Reaction score
127
Points
43
Location
Suriye
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!

Theme editor

Top Bottom