Gold
Gold

Reputation: 62424

how to focus on form in Windows-CE?

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

Upvotes: 0

Views: 563

Answers (1)

ctacke
ctacke

Reputation: 67168

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

this.Focus()

Upvotes: 1

Related Questions