a) Will look into it when I have time.
b) Fix it by changing this line:
 Code:
$TextBox1.ReadOnly = -1  ;True

to
 Code:
$TextBox1.ReadOnly = 0  ;False