Tab Form
-
Hi, I am working on tab form i need to do focus on first text box of tab page i already post this issue but i didn't get result please tell me what i should do. On form load first tab page will display and first text box must be focus like courser must be blink their. Thanks
-
Hi, I am working on tab form i need to do focus on first text box of tab page i already post this issue but i didn't get result please tell me what i should do. On form load first tab page will display and first text box must be focus like courser must be blink their. Thanks
write following to your form load and tabControl selectedIndexChange Event.
void setFocus(byte selectedIndex) { switch (selectedIndex) { case 0: //focus control that u want txt1.Focus(); break; case 1: //focus control that u want cmb1.Focus(); break; } } void TabControl1SelectedIndexChanged(object sender, EventArgs e) { setFocus((byte)tabControl1.SelectedIndex); } void Frm_Form7Load(object sender, EventArgs e) { //setFocus(0); If by default first tab is selected setFocus((byte)tabControl1.SelectedIndex); }
set the control TabIndex to 0 and you can also set the TabControl TabStop to false. -
Hi, I am working on tab form i need to do focus on first text box of tab page i already post this issue but i didn't get result please tell me what i should do. On form load first tab page will display and first text box must be focus like courser must be blink their. Thanks
-
Hi, I am working on tab form i need to do focus on first text box of tab page i already post this issue but i didn't get result please tell me what i should do. On form load first tab page will display and first text box must be focus like courser must be blink their. Thanks