Private Declare Function GetSystemMetrics Lib "user32" (ByVal nIndex As Long) As Long
Property Get TitleBarHeight(f As Form) As Long
Const SM_CYCAPTION = 4
TitleBarHeight = GetSystemMetrics(SM_CYCAPTION) 'pixels
If f.ScaleMode = ScaleModeConstants.vbTwips Then
TitleBarHeight = f.ScaleY(TitleBarHeight, vbPixels, vbTwips)
End If
End Property