textbox & tab page bugg?
-
I have a single line TextBox in one TabPage in a TabControl. The TabControl SelectedIndexChanged event handler looks like
private void tabControl1_SelectedIndexChanged(object sender, EventArgs e) { if (tabControl1.SelectedIndex == 0) this.textBox1.Focus(); }
When I toggle through the tab pages via Control-Tab everything looks good. When I toggle backwards through the tab pages via Control-Shift-Tab the text alignment of the text box somehow gets set to right, even though when I step through the debugger the TextAlign property is set to HorizontalAlignment.Left Any ideas? -
I have a single line TextBox in one TabPage in a TabControl. The TabControl SelectedIndexChanged event handler looks like
private void tabControl1_SelectedIndexChanged(object sender, EventArgs e) { if (tabControl1.SelectedIndex == 0) this.textBox1.Focus(); }
When I toggle through the tab pages via Control-Tab everything looks good. When I toggle backwards through the tab pages via Control-Shift-Tab the text alignment of the text box somehow gets set to right, even though when I step through the debugger the TextAlign property is set to HorizontalAlignment.Left Any ideas?Hi Friend u can do only one thing . you have written tabcontrol1_selectedindexchanged instead you write tabcontrol1_click event . then curli braces u write this.textbox1.focus your problem is solve have a good day
-
Hi Friend u can do only one thing . you have written tabcontrol1_selectedindexchanged instead you write tabcontrol1_click event . then curli braces u write this.textbox1.focus your problem is solve have a good day