Anonymous user
GUI/Maximum window dimensions: Difference between revisions
→{{header|Visual Basic}}
Line 52:
== {{header|Visual Basic}} ==
=== Method 1 ===
The first method involves querying the screen dimensions and then subtracting pixels used by the frame and desktop bars:
<lang vb>TYPE syswindowstru
Line 68 ⟶ 72:
' Make adjustments for window decorations and menubars</lang>
=== Method 2 ===
The alternative method is to create a form that is maximized and then query its dimensions (similar to the method used in gambas).
|