by Dane Jones (2 Submissions)
Category: Miscellaneous
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (2 Votes)
Class object that gets the systems available screen workspace dimmentions and can also position a form to one of 9 screen quadrants. All API.. No SysInfo Control!
Inputs
Input Form to position and additive enumerations signifying the desired position.
Assumes
Also include an AutoRefresh flag if you want the screen metrics updated on each system call.
Code Returns
Provides property values to return workspace dimmentions if needed
Side Effects
None that I am aware of...
API DeclarationsPrivate Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, lpvParam As Any, ByVal fuWinIni As Long) As Long
Download WorkSpace Class (9 KB)