void Digital_Header_MouseDown(object sender, MouseEventArgs e)
        {
            isPressDown = true;
            c = e.X;
            d = e.Y;                Label c1 = sender as Label;
                c1.Select();
                c1.Focus();
                c1.BorderStyle = BorderStyle.FixedSingle;
        }
为什么加了      c1.BorderStyle = BorderStyle.FixedSingle; 拖动的时候 拖快了 LABLE 就不跟随鼠标了

解决方案 »

  1.   

         void Analog_Header_MouseMove(object sender, MouseEventArgs e)
            {
                if (isPressDown)
                {
                    a = e.X - c;
                    b = e.Y - d;
                    Control ctrl = (Control)sender;
                    ctrl.Left += a;
                    ctrl.Top += b;            }
            }
            void Analog_Header_MouseUp(object sender, MouseEventArgs e)
            {
                isPressDown = false;
            }
      

  2.   

    拖快了 LABLE 就不跟随鼠标了 你在移动事件里使用的鼠标坐标不使用 参数MouseEventArgs 使用Cursor.Position 进行转换 就可以解决了.
      

  3.   

    更不行 一拖lable就消失不见了
      

  4.   

    WPF中试过使用故事板StoryBoard和Double类型动画DoubleAnimation