본문 바로가기

Language/C#

C# 모니터 해상도 구하기

System 해더를 추가할 필요없이 바로 사용가능하다.

int Height = Screen.PrimaryScreen.Bounds.Height;
itn Width = Screen.PrimaryScreen.Bounds.Width;