I can see some special characters that crash the program (at least in my vb 2008 express spammers) are replaced by "", there is a very simple way to fix them, so those keystrokes will be sent properly and wont crash:
Code:
Dim fixed As String = TextBox1.Text
fixed = fixed.Replace("+", "{+}")
fixed = fixed.Replace("(", "{(}")
fixed = fixed.Replace(")", "{)}")
fixed = fixed.Replace("%", "{%}")
fixed = fixed.Replace("~", "{~}")
fixed = fixed.Replace("^", "{^}")
BTW you may say you dont need to use this fixed variable, but i have tried replacing text directly in TextBox1.Text, but it was still crashing the program.