Visual Basic Tips


画面サイズの取得


APIなんぞ使わなくても取得できます。

Private Sub Form_Load()
  Debug.Print Screen.Width
  
Debug.Print Screen.Height
End Sub