find monitor resolution
Posted: Tue Mar 25, 2008 7:00 pm
how can I make a button find my monitor's resolution and display it in a label? I'm using VB
Visit remnantmods.com for more information
http://www.halomods.info/
Code: Select all
Private Sub btnGetResolution_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGetResolution.Click
Dim X As Integer = Screen.PrimaryScreen.Bounds.Width
Dim Y As Integer = Screen.PrimaryScreen.Bounds.Height
lblResolution.Text = "Resolution: " & X & "x" & Y
End Sub
Code: Select all
Me.Location = New Point (x,y)