C# 移动鼠标方法

/// <summary>
        /// 移动鼠标
        /// </summary>
        public void Mouse()
        {
            if (this.InvokeRequired)
            {
                this.BeginInvoke(new DelegateManager.NoParameters(Mouse));
            }
            else
            {
                this.Cursor = new Cursor(Cursor.Current.Handle);
                Cursor.Position = new Point(Cursor.Position.X + 10, Cursor.Position.Y + 10);
            }
        }
posted @ 2012-10-17 23:46  陀螺-  阅读(299)  评论(0编辑  收藏  举报