VB :: For Beginners

[VB.NET] 간단하게 화면의 픽셀 수 알아내는 방법

우선, 사용하실 위치에 아래의 코드를 선언합니다.

Dim dpSize As System.Drawing.Size = System.Windows.Forms.SystemInformation.PrimaryMonitorSize

사용 방법은

dpSize.Width '가로 픽셀 수
dpSize.Height ' 세로 픽셀 수

위처럼 간단하게 사용하실 수 있습니다.
고맙습니다.

Leave a Reply

Discover more from Dream big, Achieve more.

Subscribe now to keep reading and get access to the full archive.

Continue reading