Example #1
0
 void AnisTabControl_TabMouseMove(object sender, TabMouseEventArgs e)
 {
     if (mouseDownPoint != Point.Empty) {
         Rectangle mouseMoveRectangle = new Rectangle(
           mouseDownPoint.X - 5, mouseDownPoint.Y - 5,
           10, 10);
         if (!mouseMoveRectangle.Contains(e.Location)) {
             this.DoDragDrop(this.TabPages[e.TabIndex], DragDropEffects.Move);
         }
     }
 }
Example #2
0
 void AnisTabControl_MouseWheel(object sender, MouseEventArgs e)
 {
     try {
         int index = TabIndexFromPoint(e.Location);
         if (index != -1) {
             TabMouseEventArgs E = new TabMouseEventArgs(
               index, e.Button, e.Clicks, e.X, e.Y, e.Delta);
             this.TabMouseWheel(sender, E);
         }
     }
     catch (NullReferenceException) { }
 }