tags:

views:

16

answers:

1

hi

i have this method:

private void Form1_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == '1')
            {

how to take focus on Form1 after i insert any text on TextBox

thank's in advance

+1  A: 

Call the Focus method on the Form, i.e.

this.Focus()
ctacke