Hi everyone. I am trying to use this code to get the resolution, but would like it to appear in a textbox called CurrentResTXT.text
I found this on the inter
I tried to call this from the form load event, but am not seeing anything. I event tried adding CurrentResTXT.text = intX to see if that would at least give me the width, but it is still blank. Did I miss a step?
Thanks!
I found this on the inter
VB Code:
Public Function ScreenResolution() As String Dim intX As Integer = Screen.PrimaryScreen.Bounds.Width Dim intY As Integer = Screen.PrimaryScreen.Bounds.Height Return intX & " X " & intY End Function
Thanks!