Hi is there a way to calculate the task bar height in twips or pixels?
Thanks
Printable View
Hi is there a way to calculate the task bar height in twips or pixels?
Thanks
ha ha, you could do, not sure...
...make a form maximize, and then get the height of it, then get the height of the screen and take from the other...easy!
Code:'In a module declaration
Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Declare Function GetWindowRect Lib "user32" Alias "GetWindowRect" (ByVal hwnd As Long, lpRect As RECT) As Long
Type RECT
Left As Long
Top As Long
Right As Long
Bottom As Long
End Type
'In a module
Property Get StartmenuHeight&():Dim rrect as rect
GetWindowRect (FindWindow("Shell_TrayWnd", ""),rrect)
StartmenuHeight=rrect.bottom-rrect.top
End Property
Wow Mag-net you're really cleaver!
thanks kedaman, i know i am great!
It would work
:)