private void OnMouseMove(object sender, MouseEventArgs args)
{
try
{
if (args.Button == MouseButtons.Left)
{
//if they are moving the mouse while the left mouse button is down then
//they are attempting to drag the item.
m_bDraggingIcon = true;
m_imageDrag.StartDrag(0, (int)(m_imgDrag.Width / 2), (int)(m_imgDrag.Height / 2));
this.DoDragDrop(this, DragDropEffects.Copy);
m_imageDrag.CompleteDrag();
}
}
catch (System.Exception ex)
{ string strMsg = ex.Message; }
}