예제 #1
0
        /// <summary>
        /// 在将对象拖出控件的边界时发生。
        /// </summary>
        /// <param name="e"></param>
        protected override void OnDragLeave(EventArgs e)
        {
            DragHelper.ImageList_DragLeave(this.Handle);

            // Disable timer for scrolling dragged item
            this._timer.Enabled = false;

            base.OnDragLeave(e);
        }
예제 #2
0
 /// <summary>
 /// Unlock updates
 /// 在拖放操作完成时发生时,调用此方法
 /// </summary>
 protected void DrawOnDragDrop()
 {
     // Unlock updates
     DragHelper.ImageList_DragLeave(this.Handle);
 }