Example #1
0
        void lst_L_MouseMove(object sender, MouseEventArgs e)
        {
            lstBox_From = sender as DevExpress.XtraEditors.ListBoxControl;

            if (e.Button == MouseButtons.Left)
            {
                if ((p != Point.Empty) &&
                    (Math.Abs(e.X - p.X) > SystemInformation.DragSize.Width) || (Math.Abs(e.Y) - p.Y) > SystemInformation.DragSize.Height)
                {
                    if (lstBox_From != null)
                    {
                        lstBox_From.DoDragDrop(sender, DragDropEffects.Move);
                    }
                }
            }
        }