RosettaCodeData/Task/GUI-Maximum-window-dimensions/Visual-Basic/gui-maximum-window-dimensions.vb
2023-07-01 13:44:08 -04:00

15 lines
383 B
VB.net

TYPE syswindowstru
screenheight AS INTEGER
screenwidth AS INTEGER
maxheight AS INTEGER
maxwidth AS INTEGER
END TYPE
DIM syswindow AS syswindowstru
' Determine the height and width of the screen
syswindow.screenwidth = Screen.Width / Screen.TwipsPerPixelX
syswindow.screenheight=Screen.Height / Screen.TwipsPerPixelY
' Make adjustments for window decorations and menubars