Cursor not shown in textBox
-
Hello, I'm developing an application windows CE(by using C# in VS2003). I have Form1 in which i have 2 panels: panel1,panel2 In panel1, I have a textBox1 and a button "oK" In panel2, I have only a textBox2. I write this code in order to have the cursor in the textBox1(resp textBox2) when panel1(resp panel2) is shown: public Form1() { panel2.Hide(); panel1.Show(); textBox1.Focus(); } private void OK_Click(object sender, System.EventArgs e) { this.panel1.Hide(); this.panel2.Show(); textBox2.Focus(); } But I have seen only the cursor in textBox1 of panel1. Thank you
-
Hello, I'm developing an application windows CE(by using C# in VS2003). I have Form1 in which i have 2 panels: panel1,panel2 In panel1, I have a textBox1 and a button "oK" In panel2, I have only a textBox2. I write this code in order to have the cursor in the textBox1(resp textBox2) when panel1(resp panel2) is shown: public Form1() { panel2.Hide(); panel1.Show(); textBox1.Focus(); } private void OK_Click(object sender, System.EventArgs e) { this.panel1.Hide(); this.panel2.Show(); textBox2.Focus(); } But I have seen only the cursor in textBox1 of panel1. Thank you