You don't need to put the cursor back into the text box. Simply intercept the key being pressed in your keydown/up and update the string in your textbox with the new character. You may need to call refresh on your textbox control afterwards.
Ketsuekiame
Nearly a Posting Virtuoso
1,204 posts since May 2010
Reputation Points: 553
Solved Threads: 154
Skill Endorsements: 9
Why do you need to show the cursor in the box? I think without override the OnPaint event, you won't be able to.
Ketsuekiame
Nearly a Posting Virtuoso
1,204 posts since May 2010
Reputation Points: 553
Solved Threads: 154
Skill Endorsements: 9