? IsVerticalScrollbar(ThisForm.HWnd) RETURN FUNCTION IsVerticalScrollbar(thWnd) LOCAL lnStyle #DEFINE GWL_STYLE -16 #DEFINE WS_VSCROLL 0x00200000 DECLARE Long GetWindowLong IN WIN32API HWND Long, nIndex Long lnStyle = GetWindowLong(thWnd, GWL_STYLE) RETURN (BITAND(lnStyle, WS_VSCROLL) <> 0)>Does anyone know of a way to check if the vertical scroll bar is active? I have a form that can be re-sized but if the height is shorter than the contents the scroll bar becomes active (or visible) and narrows the width of the form. I need to know when this happens so I can make the form wider by sysmetric(5).