find monitor resolution
-
- Posts: 541
- Joined: Thu Feb 08, 2007 5:39 pm
- Location: NJ
find monitor resolution
how can I make a button find my monitor's resolution and display it in a label? I'm using VB
Your mom became oversized. Please make your mom smaller before reposting.

Infern0 wrote:You just shave the excess bush and burn the leftovers.
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
-
- Posts: 5426
- Joined: Sat Jul 24, 2004 12:12 pm
- Location: I'm a Paranoid
- Contact:
![]() |
![]() |
Code: Select all
Me.Location = New Point (x,y)
Last edited by Patrickssj6 on Thu Mar 27, 2008 6:36 am, edited 1 time in total.
...left for good
-
- Posts: 541
- Joined: Thu Feb 08, 2007 5:39 pm
- Location: NJ