我如何知道VB-2010中的屏幕分辨率



我需要知道如何知道VB-2010中的屏幕分辨率,例如在" TextBox"中显示屏幕分辨率。并知道帐户名,如果可以的话。

您可以使用

Dim screenWidth as Integer = Screen.PrimaryScreen.Bounds.Width
Dim screenHeight as Integer = Screen.PrimaryScreen.Bounds.Height

从此中读取更多的Cody Gray

的出色解释

最新更新