What is the best way to do this?

I tried:
Code:
if len(txtTextBox) > 10 then
     txtTextBox.Text = left(txtTextBox,10)
End If
But It places the cursor at the beginning of the text box, screwing up the text if the user continues to type and didn't notice...

Any ideas?