2012-03-08 71 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

相關問題