Ejemplo n.º 1
0
 private void tabControlMain_TabMoved(object sender, TabStripTabMovedEventArgs e)
 {
     if (e.NewIndex == 0 || e.OldIndex == 0)
     {
         e.Cancel = true;
     }
 }
Ejemplo n.º 2
0
 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;
     }
 }
Ejemplo n.º 3
0
		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);
			}
		}