表紙 > VB6 サンプル >
VB6
6.ディスプレイのサイズを取得する
MsgBox "横幅: " & Screen.Width MsgBox "縦幅: " & Screen.Height メモ:単位はPixel
MsgBox "縦幅: " & Screen.Height
メモ:単位はPixel
VB.NETではScreenクラスを利用します。 → VB.NET 画面のサイズを取得する