Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...