Declaring Cursor.Size
<pre><code>using System;
using System.Windows;
using System.Windows.Forms;
using System.Design;
using System.Drawing;

public class MouseMove
{
    public var CursorSize = Cursor.Size;
    public void MoveCursor()
    {
        Cursor.Current = new Cursor(Cursor.Current.Handle);
        Cursor.Position = new Point(Cursor.Position.X - 50, Cursor.Position.Y - 50);
        Cursor.Clip = new Rectangle(Cursor.Position, Cursor.Size);
    }
}
</code></pre>

<p>I'm using the following to try and move a mouse automatically, but I'm having trouble accessing the size of the mouse. It tells me that I cannot use the contextual keyword 'var' outside of a local variable declaration. Can anyone tell me how to access the size? I can't seem to get this.Cursor or this.size/position to work, so I am working around that.</p>