private void tabControlMain_TabMoved(object sender, TabStripTabMovedEventArgs e) { if (e.NewIndex == 0 || e.OldIndex == 0) { e.Cancel = true; } }
private void FTabs_TabMoved(object sender, TabStripTabMovedEventArgs e) { // do not allow to move the "Code" tab if (e.OldIndex == 0 || e.NewIndex == 0) { e.Cancel = true; } else { FTabMoved = true; } }
private void TabMoved(object sender, TabStripTabMovedEventArgs e) { IComponentChangeService change=this.GetService(typeof(IComponentChangeService)) as IComponentChangeService; if(change!=null) { change.OnComponentChanging(this.Control,null); change.OnComponentChanged(this.Control,null,null,null); } }