One solution to this problem would be to ensure that the textbox never loses focus by installing handlers for the Form Activate event and the TextBox Leave event.
private void MainForm_Activated(object sender, EventArgs e) {
textBox1.Focus();
}
private void textBox1_Leave(object sender, EventArgs e) {
textBox1.Focus();
}
The Activated handler will ensure than the textbox is always given focus when the form becomes active and the Leave handler will keep it that way.
Alan.