private void setTab(int i) { if (tcTabs.InvokeRequired) { SetTabCallback cb = new SetTabCallback(setTab); Invoke(cb, i); } else { tcTabs.SelectedIndex = i; } }
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(); }
private void SetTabControlIndex(int tabIndex) { if (this.tabControlMain.InvokeRequired) { SetTabCallback dx = new SetTabCallback(SetTabControlIndex); this.Invoke(dx, new object[] { tabIndex }); } else tabControlMain.SelectedIndex = tabIndex; }