Code:
$lbl = $GroupBox.Controls.Add( "Label" )
	$lbl.text = $label
	$lbl.location = $x1, $y1
	$lbl.size = $width, $height

	$textbox = $GroupBox.Controls.Add( "TextBox" )
	$textbox.text = $textvalue
	$textbox.location = $x1+$width, $y1
	$textbox.size = $width, $height
	$textbox.BackColor=$Form.BackColor
	$textbox.Enabled=0

this whole section is under the error "unexpected error"