Function to return the width of window border.
Function to return the width of window border.
Rate Function to return the width of window border.
(1(1 Vote))
Private Function WindowBorderWidth
WindowBorderWidth = ((Me.Width - (Me.ScaleWidth * Screen.TwipsPerPixelX)) \ Screen.TwipsPerPixelX)\2
End Function
'Knowing the Windows border-width is handy for some centering and size-limiting tasks.
'This is the border-width for ever form on the system, sides, top, and bottom.
'The Windos border-with can be changed in Display Properties.
Function to return the width of window border. Comments
No comments yet — be the first to post one!
Post a Comment