Example #1
0
 private void setTab(int i)
 {
     if (tcTabs.InvokeRequired)
     {
         SetTabCallback cb = new SetTabCallback(setTab);
         Invoke(cb, i);
     }
     else
     {
         tcTabs.SelectedIndex = i;
     }
 }
Example #2
0
 private void SetTabControlIndex(int tabIndex)
 {
     if (this.tabControlMain.InvokeRequired)
     {
         SetTabCallback dx = new SetTabCallback(SetTabControlIndex);
         this.Invoke(dx, new object[] { tabIndex });
     }
     else
     {
         tabControlMain.SelectedIndex = tabIndex;
     }
     //buttonPass.Focus();
 }
Example #3
0
 private void SetTabControlIndex(int tabIndex)
 {
     if (this.tabControlMain.InvokeRequired)
     {
         SetTabCallback dx = new SetTabCallback(SetTabControlIndex);
         this.Invoke(dx, new object[] { tabIndex });
     }
     else
         tabControlMain.SelectedIndex = tabIndex;
 }