the only problem is that my program automatically inserts text, and when it inserts the text it gives the focus to the textbox.

i'm thinking i could try something like making an invisible checkbox and checking it after the text is entered.

thanks for the help.