I_R_Lee Posted October 9, 2002 Posted October 9, 2002 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.? Quote
*Gurus* divil Posted October 9, 2002 *Gurus* Posted October 9, 2002 System.Windows.Forms.Cursor.Current.Position = New Point(X, Y) Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.