Advertisement
7_2009-2012 Miscellaneous #234766

Screen Resolution

'This code will tell you how to get our computer screen resolution 'just a few lines of codes..

AI

Podsumowanie AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Kod źródłowy
original-source
'This code will tell you how to get our computer screen resolution
'just a few lines of codes..
  Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Dim DeskTop As System.Windows.Forms.Screen
    Dim theWidth As Integer = DeskTop.PrimaryScreen.Bounds.Width
    Dim theHeight As Integer = DeskTop.PrimaryScreen.Bounds.Height
    MsgBox(theWidth & "x" & theHeight)
  End Sub
Oryginalne komentarze (3)
Odzyskane z Wayback Machine