Not sure why but I have not been able to get a Frame working with your code. As far as I can see a frame is more or less the same as a multiline textbox (but I might be wrong as I never used frames).

This works fine for me.

 Code:
Break on

; Form
$Form = CreateObject("Kixtart.Form")
$Form.Caption = "Test"
$Form.Width = 500
$Form.Height = 500
$Form.Center

$TextBox = $Form.Controls.TextBox() 
$TextBox.Dock = Fill 
$TextBox.Multiline = "True" 
$TextBox.ScrollBars = Vertical 
$TextBox.Text = "" 
$TextBox.WordWrap = "True" 

$Form.show

AddText()

While $Form.Visible 
	$ = Execute($Form.DoEvents()) 
Loop 

Function AddText()
	$timer = 0
		
	For $timer = 0 to 20
		If $timer = 0
			$textBox.text = "Line: " + $timer
		Else
			$textBox.text = $TextBox.Text + @CRLF + "Line: " + $timer
		EndIf
		Sleep 1
	Next
EndFunction


It is also not that easy to test your script as it does things on my test system that I so not want. Just like Arend I do not see any missing or unmatched quotes or other weird things in your code.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.