#include <GUIConstants.au3>
#include <GuiListBox.au3>
Global $n=0
$hMainGui = GUICreate('', 400, 300)
$AddBut=GUICtrlCreateButton('Добавить строку',5,5,150,25)
$ListBox = GUICtrlCreateList('', 5, 35, 390, 3)
GUISetState(@SW_SHOW, $hMainGui)
While 1
$msg = GUIGetMsg()
Switch $msg
Case $GUI_EVENT_CLOSE
Exit
Case $AddBut
$n+=1
_GUICtrlListBox_AddString($ListBox,'Новая строка №'&$n)
ControlMove ( "", "", $ListBox, 5, 35, 390, $n*13+13 )
EndSwitch
WEnd