2012-03-08 83 views

回答

3

您可以使用:

Screen.PrimaryScreen.Bounds.Width 
Screen.PriamryScreen.Bounds.Height 

或:

My.Computer.Screen.Bounds.Width 
My.Computer.Screen.Bounds.Height 

或者你可以看看Screen.WorkingArea,让你的尺寸的工作国王区域(不包括停靠的窗口,工具栏等)

1

也许是这样的:

Dim intX As Integer = Screen.PrimaryScreen.Bounds.Width 
Dim intY As Integer = Screen.PrimaryScreen.Bounds.Height 
3
Screen.PrimaryScreen.Bounds.Width 
Screen.PrimaryScreen.Bounds.Height 
+0

+1,但建议您始终提供您的代码的上下文,而不是......只是代码;-) – jadarnel27 2012-03-09 13:56:15

相关问题