Mouse cursor

I_R_Lee

Regular
Joined
Jul 18, 2002
Messages
50
Location
Sydney, Australia
When I try and set the cursor position using the following code:
Code:
        Do Until I = lstXCoords.Items.Count - 1 And _ 
 II = lstYCoords.Items.Count - 1
            XCo = lstXCoords.Items.Item(I)
            YCo = lstYCoords.Items.Item(II)
            System.Windows.Forms.Cursor.Current.Position.X  = XCo
            System.Windows.Forms.Cursor.Current.Position.Y = YCo
Loop

It says 'Expression is a value and therefore cannot be the target of an assignment' on the ..........Position.X and Y. It even says Gets or SETS the X/Y coordinates. How do I set the x/y coords.?
 
Back
Top