R
Robert Wachtel
Hi!
Visual Studio 2005 C# Compact Framework 1 for Pocket PC 2003
I try to set input focus to a TextBox in a TabPage after entering the
TabPage:
private void tabControl1_SelectedIndexChanged(object sender, EventArgs e)
{
if (this.tabControl1.SelectedIndex == 1)
this.textBox1.Focus();
}
didn't work. So I tried adding an
if (this.tabControl1.SelectedIndex == 1)
{
this.textBox1.Focus();
this.tabControl1.Focus();
this.tabPage1.Focus();
}
but that didn't work either.
I checked with
if (this.textbox1.Focus() == true)
this.textbox1.text = "TEST";
so the TextBox displays "TEST" but does not receive focus?
What am I doing wrong?
Greetings from Cologne
Robert
Visual Studio 2005 C# Compact Framework 1 for Pocket PC 2003
I try to set input focus to a TextBox in a TabPage after entering the
TabPage:
private void tabControl1_SelectedIndexChanged(object sender, EventArgs e)
{
if (this.tabControl1.SelectedIndex == 1)
this.textBox1.Focus();
}
didn't work. So I tried adding an
if (this.tabControl1.SelectedIndex == 1)
{
this.textBox1.Focus();
this.tabControl1.Focus();
this.tabPage1.Focus();
}
but that didn't work either.
I checked with
if (this.textbox1.Focus() == true)
this.textbox1.text = "TEST";
so the TextBox displays "TEST" but does not receive focus?
What am I doing wrong?
Greetings from Cologne
Robert