#include #include $hGUI = GUICreate("anything", 600, 400) $top = 5 For $i = 1 to 50 GUICtrlCreateLabel("anything", 5, $top, 200, 15) GUICtrlSetBkColor(-1, $COLOR_BLUE) $top = $top + 20 Next _GUIScrollbars_Generate($hGUI, 0, 1200) GUISetState(@SW_SHOW, $hGUI) While 1 $msg = GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE Exit EndSwitch Wend ; I would like to limit down scrolling to the bottom edge of the last GUICtrlCreateLabel (without empty space). ; Which calculation method should I use to calculate the _GUIScrollbars_Generate's ScrollHeight? ; Thanks in advance for help!