I_R_Lee
Regular
When I try and set the cursor position using the following code:
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.?
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.?